mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 22:21:18 +00:00
Mono: Fix not creating generic Array or Dictionary where expected
This commit is contained in:
parent
0f3de6ef3a
commit
50fd5ef3b5
7 changed files with 114 additions and 11 deletions
|
|
@ -1174,7 +1174,7 @@ bool CSharpInstance::set(const StringName &p_name, const Variant &p_value) {
|
|||
GDMonoProperty *property = script->script_class->get_property(p_name);
|
||||
|
||||
if (property) {
|
||||
property->set_value(mono_object, GDMonoMarshal::variant_to_mono_object(p_value));
|
||||
property->set_value(mono_object, GDMonoMarshal::variant_to_mono_object(p_value, property->get_type()));
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue