1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Prevent cyclic reference between script and its members

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

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) {