1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

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

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