Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix broken scene file parser #603

Merged

Conversation

DaelonSuzuka
Copy link
Collaborator

@DaelonSuzuka DaelonSuzuka commented Feb 25, 2024

Fixes #600

The Scene Preview panel was failing to render certain scene files. The cause turned out to be a new(?) field in the node section header, nodes_paths.

These section headers were being found and parsed in a single overly-large regex, which did not tolerate the addition of the new field. The fix is splitting the work into one regex that finds the section header, and multiple smaller regexes that extract each field individually.

@DaelonSuzuka DaelonSuzuka merged commit e89cb78 into godotengine:master Feb 25, 2024
4 checks passed
@DaelonSuzuka DaelonSuzuka deleted the scene_preview_node_paths branch February 25, 2024 23:24
@Calinou Calinou added the bug label Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ScenePreview does not work for CharacterBody3D
2 participants