Fix handling else ifs.

This commit is contained in:
Relintai 2022-06-04 08:05:16 +02:00
parent a92c488a82
commit e28b7cfb82

View File

@ -306,7 +306,7 @@ class GDSScope:
if type == GDScopeType.GDSCOPE_TYPE_IF:
s += "if (" + scope_data + ") {"
elif type == GDScopeType.GDSCOPE_TYPE_ELIF:
s += "if (" + scope_data + ") {"
s += "else if (" + scope_data + ") {"
elif type == GDScopeType.GDSCOPE_TYPE_ELSE:
s += "else {"
elif type == GDScopeType.GDSCOPE_TYPE_FOR: