浏览代码

[godot] Fix version check.

Mario Zechner 11 月之前
父节点
当前提交
fb1cd5e161
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      spine-godot/spine_godot/SpineSkeletonFileResource.cpp

+ 1 - 1
spine-godot/spine_godot/SpineSkeletonFileResource.cpp

@@ -177,7 +177,7 @@ Error SpineSkeletonFileResource::copy_from(const Ref<Resource> &p_resource) {
 #if VERSION_MAJOR > 3
 #if VERSION_MAJOR > 3
 RES SpineSkeletonFileResourceFormatLoader::load(const String &path, const String &original_path, Error *error, bool use_sub_threads, float *progress, CacheMode cache_mode) {
 RES SpineSkeletonFileResourceFormatLoader::load(const String &path, const String &original_path, Error *error, bool use_sub_threads, float *progress, CacheMode cache_mode) {
 #else
 #else
-#if MINOR_VERSION > 5
+#if VERSION_MINOR > 5
 RES SpineSkeletonFileResourceFormatLoader::load(const String &path, const String &original_path, Error *error, bool no_subresource_cache) {
 RES SpineSkeletonFileResourceFormatLoader::load(const String &path, const String &original_path, Error *error, bool no_subresource_cache) {
 #else
 #else
 RES SpineSkeletonFileResourceFormatLoader::load(const String &path, const String &original_path, Error *error) {
 RES SpineSkeletonFileResourceFormatLoader::load(const String &path, const String &original_path, Error *error) {