summaryrefslogtreecommitdiff
path: root/modules/gdscript
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-11-10 21:33:19 +0100
committerGitHub <noreply@github.com>2018-11-10 21:33:19 +0100
commit87d27e1250c4be1406b15244901cefb6738a6709 (patch)
treeb13a04e9969a885492e6f61f7fb3aa26c0677290 /modules/gdscript
parent3e128a6d8aa2982ec4da20c1dd73faa968b9207a (diff)
parent7c4c646749772aee235ea5b42b6f1a1f2bfe2b51 (diff)
Merge pull request #23639 from neikeq/gg
Fix GDScript placeholder fallback
Diffstat (limited to 'modules/gdscript')
-rw-r--r--modules/gdscript/gdscript.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript.cpp b/modules/gdscript/gdscript.cpp
index ef86ccae14..159085df34 100644
--- a/modules/gdscript/gdscript.cpp
+++ b/modules/gdscript/gdscript.cpp
@@ -469,8 +469,15 @@ bool GDScript::_update_exports() {
for (Set<PlaceHolderScriptInstance *>::Element *E = placeholders.front(); E; E = E->next()) {
E->get()->set_build_failed(true);
}
+ return false;
}
} else {
+ if (!valid) {
+ for (Set<PlaceHolderScriptInstance *>::Element *E = placeholders.front(); E; E = E->next()) {
+ E->get()->set_build_failed(true);
+ }
+ return false;
+ }
}
if (base_cache.is_valid()) {