From 7c4c646749772aee235ea5b42b6f1a1f2bfe2b51 Mon Sep 17 00:00:00 2001 From: Ignacio Etcheverry Date: Sat, 10 Nov 2018 20:06:17 +0100 Subject: Fix GDScript placeholder fallback --- modules/gdscript/gdscript.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'modules/gdscript') 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::Element *E = placeholders.front(); E; E = E->next()) { E->get()->set_build_failed(true); } + return false; } } else { + if (!valid) { + for (Set::Element *E = placeholders.front(); E; E = E->next()) { + E->get()->set_build_failed(true); + } + return false; + } } if (base_cache.is_valid()) { -- cgit v1.2.3