Merge pull request #57513 from trollodel/gdscript_get_propertyinfo_classname
Allow setting the PropertyInfo class_name from GDScript custom properties
This commit is contained in:
commit
68b86220c8
|
@ -1475,6 +1475,9 @@ void GDScriptInstance::get_property_list(List<PropertyInfo> *p_properties) const
|
||||||
if (d.has("usage")) {
|
if (d.has("usage")) {
|
||||||
pinfo.usage = d["usage"];
|
pinfo.usage = d["usage"];
|
||||||
}
|
}
|
||||||
|
if (d.has("class_name")) {
|
||||||
|
pinfo.class_name = d["class_name"];
|
||||||
|
}
|
||||||
|
|
||||||
props.push_back(pinfo);
|
props.push_back(pinfo);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue