Skip to content

Commit eef0528

Browse files
committed
[godot] Do not register editor types for template extension builds.
1 parent 33ea720 commit eef0528

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spine-godot/spine_godot/register_types.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,14 @@ static void editor_init_callback() {
8080
#ifdef SPINE_GODOT_EXTENSION
8181
void initialize_spine_godot_module(ModuleInitializationLevel level) {
8282
if (level == MODULE_INITIALIZATION_LEVEL_EDITOR) {
83+
#ifdef TOOLS_ENABLED
8384
GDREGISTER_CLASS(SpineAtlasResourceImportPlugin);
8485
GDREGISTER_CLASS(SpineJsonResourceImportPlugin);
8586
GDREGISTER_CLASS(SpineBinaryResourceImportPlugin);
8687
GDREGISTER_CLASS(SpineSkeletonDataResourceInspectorPlugin);
8788
GDREGISTER_CLASS(SpineEditorPlugin);
8889
EditorPlugins::add_plugin_class(StringName("SpineEditorPlugin"));
90+
#endif
8991
}
9092
if (level != MODULE_INITIALIZATION_LEVEL_SCENE) return;
9193
#else

0 commit comments

Comments
 (0)