mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 06:14:53 +08:00
[godot] Do not register editor types for template extension builds.
This commit is contained in:
parent
33ea72017b
commit
eef05281fd
@ -80,12 +80,14 @@ static void editor_init_callback() {
|
||||
#ifdef SPINE_GODOT_EXTENSION
|
||||
void initialize_spine_godot_module(ModuleInitializationLevel level) {
|
||||
if (level == MODULE_INITIALIZATION_LEVEL_EDITOR) {
|
||||
#ifdef TOOLS_ENABLED
|
||||
GDREGISTER_CLASS(SpineAtlasResourceImportPlugin);
|
||||
GDREGISTER_CLASS(SpineJsonResourceImportPlugin);
|
||||
GDREGISTER_CLASS(SpineBinaryResourceImportPlugin);
|
||||
GDREGISTER_CLASS(SpineSkeletonDataResourceInspectorPlugin);
|
||||
GDREGISTER_CLASS(SpineEditorPlugin);
|
||||
EditorPlugins::add_plugin_class(StringName("SpineEditorPlugin"));
|
||||
#endif
|
||||
}
|
||||
if (level != MODULE_INITIALIZATION_LEVEL_SCENE) return;
|
||||
#else
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user