summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript.cpp
diff options
context:
space:
mode:
authorGeorge Marques <george@gmarqu.es>2022-06-15 10:48:01 -0300
committerGitHub <noreply@github.com>2022-06-15 10:48:01 -0300
commit68b86220c806fa02d0d2b21d6561e7ea871e840e (patch)
tree9f5c6fad08d3274c043e09d54da49d8669655137 /modules/gdscript/gdscript.cpp
parent1aa6e33bf5662bfd325ebd922e80c53e111bef27 (diff)
parent1d6ac42b2a8a5b93e55ebd32fcb185c72cbda9d9 (diff)
downloadredot-engine-68b86220c806fa02d0d2b21d6561e7ea871e840e.tar.gz
Merge pull request #57513 from trollodel/gdscript_get_propertyinfo_classname
Allow setting the PropertyInfo class_name from GDScript custom properties
Diffstat (limited to 'modules/gdscript/gdscript.cpp')
-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 55a7e39dec..99460252d7 100644
--- a/modules/gdscript/gdscript.cpp
+++ b/modules/gdscript/gdscript.cpp
@@ -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);
}