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

@ArokhSlade ArokhSlade commented Apr 16, 2026

Copy link
Copy Markdown
Contributor

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 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.

@aaronfranke aaronfranke left a comment

Copy link
Copy Markdown
Member

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 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

Repiteo commented Apr 20, 2026

Copy link
Copy Markdown
Contributor

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