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:
George Marques 2022-06-15 10:48:01 -03:00 committed by GitHub
commit 68b86220c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -1475,6 +1475,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);
}