We now allow booleanization of all types. This means that empty versions
of all types now evaluate to false. So a Vector2(0,0), Dictionary(),
etc.
This allows you to write GDScript like:
if not Dictionary():
print("Empty dict")
Booleanization can now also no longer fail. There is no more valid flag,
this changes Variant and GDNative API.
|
||
|---|---|---|
| .. | ||
| gdnative | ||
| include | ||
| nativescript | ||
| config.py | ||
| gd_native_library_editor.cpp | ||
| gd_native_library_editor.h | ||
| gdnative.cpp | ||
| gdnative.h | ||
| register_types.cpp | ||
| register_types.h | ||
| SCsub | ||