mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05:00
Correctly register editor-only module classes with the API
This commit is contained in:
@@ -48,8 +48,13 @@ void initialize_vorbis_module(ModuleInitializationLevel p_level) {
|
||||
ResourceFormatImporter::get_singleton()->add_importer(ogg_vorbis_importer);
|
||||
}
|
||||
|
||||
ClassDB::APIType prev_api = ClassDB::get_current_api();
|
||||
ClassDB::set_current_api(ClassDB::API_EDITOR);
|
||||
|
||||
// Required to document import options in the class reference.
|
||||
GDREGISTER_CLASS(ResourceImporterOggVorbis);
|
||||
|
||||
ClassDB::set_current_api(prev_api);
|
||||
#endif
|
||||
|
||||
GDREGISTER_CLASS(AudioStreamOggVorbis);
|
||||
|
||||
Reference in New Issue
Block a user