summaryrefslogtreecommitdiff
path: root/modules/gdscript
diff options
context:
space:
mode:
authortrollodel <33117082+trollodel@users.noreply.github.com>2022-02-01 11:57:14 +0100
committertrollodel <33117082+trollodel@users.noreply.github.com>2022-02-01 11:57:14 +0100
commit1d6ac42b2a8a5b93e55ebd32fcb185c72cbda9d9 (patch)
tree93c34aac7f86205a569674ada7a19274b521a4c7 /modules/gdscript
parent2aee84c755ccb5674b257d7b281bbfb7a3769f44 (diff)
Allow setting the PropertyInfo class_name from GDScript
Diffstat (limited to 'modules/gdscript')
-rw-r--r--modules/gdscript/gdscript.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript.cpp b/modules/gdscript/gdscript.cpp
index 84db97625b..f9df5a7217 100644
--- a/modules/gdscript/gdscript.cpp
+++ b/modules/gdscript/gdscript.cpp
@@ -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);
}