浏览代码

Do not include Ref.hpp file in Reference.hpp

RameshRavone 7 年之前
父节点
当前提交
4aec7cbf42
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      binding_generator.py

+ 1 - 1
binding_generator.py

@@ -77,7 +77,7 @@ def generate_class_header(used_classes, c):
 
 
     # Ref<T> is not included in object.h in Godot either,
     # Ref<T> is not included in object.h in Godot either,
     # so don't include it here because it's not needed
     # so don't include it here because it's not needed
-    if class_name != "Object":
+    if class_name != "Object" and class_name != "Reference":
         source.append("#include <core/Ref.hpp>")
         source.append("#include <core/Ref.hpp>")