Merge pull request #53422 from KoBeWi/add_LUA_to_Godot
This commit is contained in:
commit
49e7e049ab
3 changed files with 8 additions and 1 deletions
|
@ -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 {
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
func test():
|
||||
var dict = {}
|
||||
dict.test = 1
|
||||
print(dict.test)
|
|
@ -0,0 +1,2 @@
|
|||
GDTEST_OK
|
||||
1
|
Loading…
Reference in a new issue