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

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

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