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

Make EditorSceneFormatImporter::_get_import_options match EditorScenePostImportPlugin API #100782

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lyuma
Copy link
Contributor

@lyuma lyuma commented Dec 24, 2024

Fixes #84516

After a lot of contemplating, I discovered that the EditorScenePostImportPlugin class had a similar API to the seemingly-broken _get_import_options in EditorSceneFormatImporter. However, the difference is that reduz stored the options list in a local class member and added add_import_option (and add_import_option_advanced) to allow registering import options inside of _get_import_options, so we do the same thing here.

Also added some documentation mostly copied from the working APIs in EditorScenePostImportPlugin, since EditorSceneFormatImporter was missing a bunch of docs despite predating the post-import plugin system.

@lyuma lyuma added this to the 4.4 milestone Dec 24, 2024
@lyuma lyuma requested review from a team as code owners December 24, 2024 11:14
@lyuma lyuma force-pushed the add_import_option branch from 3f5a5cd to 23aad19 Compare December 25, 2024 13:13
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.

C# glue for EditorSceneFormatImporter::get_import_options overload is missing return value for options
1 participant