Skip to content

Fix EditorScenePostImportPlugin::_get_internal_option_visibility() having no effect#118656

Merged
Repiteo merged 1 commit into
godotengine:masterfrom
ArokhSlade:fix_import_plugin-_get_internal_option_visibility
Apr 20, 2026
Merged

Fix EditorScenePostImportPlugin::_get_internal_option_visibility() having no effect#118656
Repiteo merged 1 commit into
godotengine:masterfrom
ArokhSlade:fix_import_plugin-_get_internal_option_visibility

Conversation

@ArokhSlade
Copy link
Copy Markdown
Contributor

@ArokhSlade ArokhSlade commented Apr 16, 2026

post_import_plugin_skeleton_rest_fixer::_get_internal_option_visibility() gets called before user plugins. as it used to return true by default, it would always override/intercept any user implementation.

now it returns null for those cases it is not explicitly coded to handle, indicating "ignore". see also: #118652

EditorScenePostImportPlugin's _get_internal_option_visibility had no effect

Bugsquad edit:

@ArokhSlade ArokhSlade requested review from a team as code owners April 16, 2026 19:14
@fire fire changed the title fix EditorScenePostImportPlugin::_get_internal_option_visibility() having no effect Fix EditorScenePostImportPlugin::_get_internal_option_visibility() having no effect Apr 16, 2026
Comment thread editor/import/3d/post_import_plugin_skeleton_rest_fixer.cpp Outdated
@ArokhSlade
Copy link
Copy Markdown
Contributor Author

There is also this comment at https://github.com/godotengine/godot/blob/master/editor/import/3d/resource_importer_scene.cpp#L2547 which may be referring to this bug but I'm not sure.

// TODO: If there are more than 2 or equal get_internal_option_visibility method, visibility state is broken.

Copy link
Copy Markdown
Member

@aaronfranke aaronfranke left a comment

Choose a reason for hiding this comment

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

This fix is correct, I checked the code. If all calls return non-booleans it will still return true overall.

Should be squashed though. @ArokhSlade please do so, and see here for instructions: https://contributing.godotengine.org/en/latest/pull_requests/creating_pull_requests.html#the-interactive-rebase

…ving no effect

post_import_plugin_skeleton_rest_fixer::_get_internal_option_visibility() gets called before user plugins.
as it used to return true by default, it would always override/intercept any user implementation.

now it returns null for those cases it is not explicitly coded to handle, indicating "ignore".
see also: godotengine#118652
@ArokhSlade ArokhSlade force-pushed the fix_import_plugin-_get_internal_option_visibility branch from 6b58c3d to 4fe2e80 Compare April 17, 2026 17:43
@ArokhSlade
Copy link
Copy Markdown
Contributor Author

squash complete

@akien-mga akien-mga changed the title Fix EditorScenePostImportPlugin::_get_internal_option_visibility() having no effect Fix EditorScenePostImportPlugin::_get_internal_option_visibility() having no effect Apr 20, 2026
@akien-mga akien-mga modified the milestones: 4.x, 4.7 Apr 20, 2026
@Repiteo Repiteo merged commit f6a8047 into godotengine:master Apr 20, 2026
20 checks passed
@Repiteo
Copy link
Copy Markdown
Contributor

Repiteo commented Apr 20, 2026

Thanks! Congratulations on your first merged contribution! 🎉

@ArokhSlade ArokhSlade deleted the fix_import_plugin-_get_internal_option_visibility branch April 24, 2026 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

EditorScenePostImportPlugin _get_internal_option_visibility broken

5 participants