Mono: Fix not creating generic Array or Dictionary where expected

This commit is contained in:
Ignacio Etcheverry 2018-09-27 00:11:31 +02:00
parent 0f3de6ef3a
commit 50fd5ef3b5
7 changed files with 114 additions and 11 deletions

View file

@ -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;
}