Skip to content

Fix main_scene corruption #154

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

Merged
merged 1 commit into from
Jul 23, 2024
Merged

Fix main_scene corruption #154

merged 1 commit into from
Jul 23, 2024

Conversation

manuq
Copy link
Contributor

@manuq manuq commented Jul 22, 2024

Somehow the scene got corrupted, causing the following error when the plugin was loaded for the first time in a new project:

Failed to instantiate scene state of "res://addons/block_code/ui/main_panel.tscn", node count is 0. Make sure the PackedScene resource is valid.
res://addons/block_code/block_code_plugin.gd:56 - Invalid set index 'undo_redo' (on base: 'null instance') with value of type 'EditorUndoRedoManager'.
res://addons/block_code/block_code_plugin.gd:107 - Attempt to call function 'switch_scene' in base 'null instance' on a null instance.

Fixed by simply opening the scene with the editor and saving it.

Fixes #149 #151

https://phabricator.endlessm.com/T35574

Somehow the scene got corrupted, causing the following error when the
plugin was loaded for the first time in a new project:

> Failed to instantiate scene state of "res://addons/block_code/ui/main_panel.tscn", node count is 0. Make sure the PackedScene resource is valid.
>   res://addons/block_code/block_code_plugin.gd:56 - Invalid set index 'undo_redo' (on base: 'null instance') with value of type 'EditorUndoRedoManager'.
>   res://addons/block_code/block_code_plugin.gd:107 - Attempt to call function 'switch_scene' in base 'null instance' on a null instance.

Fixed by simply opening the scene with the editor and saving it.

https://phabricator.endlessm.com/T35574
Copy link
Contributor

@starnight starnight left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank you!

@starnight starnight merged commit 9dd0b11 into main Jul 23, 2024
2 checks passed
@starnight starnight deleted the T35574-main-scene-corruption branch July 23, 2024 02:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BlockCode editor does not open on first use (errors re. metadata) with Godot 4.2.2.stable from Steam
2 participants