瀏覽代碼

[godot] Fix preprocessor constructs

Mario Zechner 5 月之前
父節點
當前提交
fa30e51232
共有 1 個文件被更改,包括 3 次插入6 次删除
  1. 3 6
      spine-godot/spine_godot/SpineEditorPlugin.h

+ 3 - 6
spine-godot/spine_godot/SpineEditorPlugin.h

@@ -290,14 +290,11 @@ public:
 #else
 	explicit SpineEditorPlugin(EditorNode *node);
 
-#if VERSION_MAJOR > 3
-#if VERSION_MINOR > 3
-	String get_plugin_name() const override { return "SpineEditorPlugin"; }
+#if VERSION_MAJOR > 3 && VERSION_MINOR > 3
+    String get_plugin_name() const override { return "SpineEditorPlugin"; }
 #else
-	String get_name() const override { return "SpineEditorPlugin"; }
+    String get_name() const override { return "SpineEditorPlugin"; }
 #endif
-#else
-	String get_name() const override { return "SpineEditorPlugin"; }
 #endif
 };