mirror of https://github.com/godotengine/godot
Storing script references to pointer only in result.script_type could
lead to losing the last reference, causing further conversions from
Script* to Ref<Script> to fail.
Now result.script_type_ref is always set first, and then cleared in the
specific case of the script being the owner, to avoid cyclic reference
issues.
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| doc_classes | ||
| editor | ||
| icons | ||
| language_server | ||
| SCsub | ||
| config.py | ||
| gdscript.cpp | ||
| gdscript.h | ||
| gdscript_compiler.cpp | ||
| gdscript_compiler.h | ||
| gdscript_editor.cpp | ||
| gdscript_function.cpp | ||
| gdscript_function.h | ||
| gdscript_functions.cpp | ||
| gdscript_functions.h | ||
| gdscript_parser.cpp | ||
| gdscript_parser.h | ||
| gdscript_tokenizer.cpp | ||
| gdscript_tokenizer.h | ||
| register_types.cpp | ||
| register_types.h | ||