Prevent cyclic reference between script and its members

This commit is contained in:
Pedro J. Estébanez committed 2020-09-10 01:26:07 +02:00
1 parent d84954a281
commit 95828161d4
3 files changed
+19 -12

No files matched your search

+2 -1
View File
@@ -56,7 +56,8 @@ struct GDScriptDataType {
bool has_type = false;
Variant::Type builtin_type = Variant::NIL;
StringName native_type;
Ref<Script> script_type;
Script *script_type = nullptr;
Ref<Script> script_type_ref;
bool is_type(const Variant &p_variant, bool p_allow_implicit_conversion = false) const {
if (!has_type) {