|
@@ -1112,6 +1112,7 @@ void Variant::get_constructor_list(Variant::Type p_type, List<MethodInfo> *p_lis
|
|
const _VariantCall::ConstructData &cd = E->get();
|
|
const _VariantCall::ConstructData &cd = E->get();
|
|
MethodInfo mi;
|
|
MethodInfo mi;
|
|
mi.name=Variant::get_type_name(p_type);
|
|
mi.name=Variant::get_type_name(p_type);
|
|
|
|
+ mi.return_val.type=p_type;
|
|
for(int i=0;i<cd.arg_count;i++) {
|
|
for(int i=0;i<cd.arg_count;i++) {
|
|
|
|
|
|
PropertyInfo pi;
|
|
PropertyInfo pi;
|
|
@@ -1134,6 +1135,7 @@ void Variant::get_constructor_list(Variant::Type p_type, List<MethodInfo> *p_lis
|
|
pi.name="from";
|
|
pi.name="from";
|
|
pi.type=Variant::Type(i);
|
|
pi.type=Variant::Type(i);
|
|
mi.arguments.push_back(pi);
|
|
mi.arguments.push_back(pi);
|
|
|
|
+ mi.return_val.type=p_type;
|
|
p_list->push_back(mi);
|
|
p_list->push_back(mi);
|
|
}
|
|
}
|
|
}
|
|
}
|