summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript_cache.cpp
diff options
context:
space:
mode:
authorrune-scape <allie.smith.epic@gmail.com>2024-06-02 02:07:47 -0700
committerrune-scape <spartacrafter@gmail.com>2024-06-02 02:08:26 -0700
commit7f7114c00881b4b27736d429ff3918aa6538f6e5 (patch)
tree81a745d8cdd45c85f6f46435cec1671a6b7d98b3 /modules/gdscript/gdscript_cache.cpp
parent505da68b261be6ed37b42422c61358ff9d208748 (diff)
downloadredot-engine-7f7114c00881b4b27736d429ff3918aa6538f6e5.tar.gz
GDScript: partially allow some functions on invalid scripts
+ always default initialize static variables + dont invalidate script when dependant scripts don't compile/resolve
Diffstat (limited to 'modules/gdscript/gdscript_cache.cpp')
-rw-r--r--modules/gdscript/gdscript_cache.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/modules/gdscript/gdscript_cache.cpp b/modules/gdscript/gdscript_cache.cpp
index ac6f5f05c6..1a106ca446 100644
--- a/modules/gdscript/gdscript_cache.cpp
+++ b/modules/gdscript/gdscript_cache.cpp
@@ -91,12 +91,8 @@ Error GDScriptParserRef::raise_status(Status p_new_status) {
result = get_analyzer()->resolve_interface();
} break;
case INTERFACE_SOLVED: {
- status = BODY_SOLVED;
- result = get_analyzer()->resolve_body();
- } break;
- case BODY_SOLVED: {
status = FULLY_SOLVED;
- result = get_analyzer()->resolve_dependencies();
+ result = get_analyzer()->resolve_body();
} break;
case FULLY_SOLVED: {
return result;