Allow setting the PropertyInfo class_name from GDScript

This commit is contained in:
trollodel 2022-02-01 11:57:14 +01:00
parent 2aee84c755
commit 1d6ac42b2a
1 changed files with 3 additions and 0 deletions

View File

@ -1453,6 +1453,9 @@ void GDScriptInstance::get_property_list(List<PropertyInfo> *p_properties) const
if (d.has("usage")) {
pinfo.usage = d["usage"];
}
if (d.has("class_name")) {
pinfo.class_name = d["class_name"];
}
props.push_back(pinfo);
}