7725ebf3d2
The path itself might not always be set in some cases, especially when the script is just created and is already in the resource cache. Using get_path() in this case gets the correct resource path. This also adds a null check for safety in case the path is incorrect or missing, to avoid a crash in the engine. |
||
---|---|---|
.. | ||
doc_classes | ||
editor | ||
icons | ||
language_server | ||
tests | ||
config.py | ||
gdscript.cpp | ||
gdscript.h | ||
gdscript_analyzer.cpp | ||
gdscript_analyzer.h | ||
gdscript_byte_codegen.cpp | ||
gdscript_byte_codegen.h | ||
gdscript_cache.cpp | ||
gdscript_cache.h | ||
gdscript_codegen.h | ||
gdscript_compiler.cpp | ||
gdscript_compiler.h | ||
gdscript_disassembler.cpp | ||
gdscript_editor.cpp | ||
gdscript_function.cpp | ||
gdscript_function.h | ||
gdscript_lambda_callable.cpp | ||
gdscript_lambda_callable.h | ||
gdscript_parser.cpp | ||
gdscript_parser.h | ||
gdscript_tokenizer.cpp | ||
gdscript_tokenizer.h | ||
gdscript_utility_functions.cpp | ||
gdscript_utility_functions.h | ||
gdscript_vm.cpp | ||
gdscript_warning.cpp | ||
gdscript_warning.h | ||
register_types.cpp | ||
register_types.h | ||
SCsub |