mirror of
https://github.com/godotengine/godot.git
synced 2025-10-31 21:51:22 +00:00
Prevent cyclic reference between script and its members
This commit is contained in:
parent
d84954a281
commit
95828161d4
3 changed files with 19 additions and 12 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue