Merge pull request #53422 from KoBeWi/add_LUA_to_Godot

This commit is contained in:
Rémi Verschelde 2021-10-07 23:37:37 +02:00 committed by GitHub
commit 49e7e049ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 1 deletions

View file

@ -239,7 +239,8 @@ void Variant::set_named(const StringName &p_member, const Variant &p_value, bool
*v = p_value;
r_valid = true;
} else {
r_valid = false;
VariantGetInternalPtr<Dictionary>::get_ptr(this)->operator[](p_member) = p_value;
r_valid = true;
}
} else {

View file

@ -0,0 +1,4 @@
func test():
var dict = {}
dict.test = 1
print(dict.test)

View file

@ -0,0 +1,2 @@
GDTEST_OK
1