From 1d6ac42b2a8a5b93e55ebd32fcb185c72cbda9d9 Mon Sep 17 00:00:00 2001 From: trollodel <33117082+trollodel@users.noreply.github.com> Date: Tue, 1 Feb 2022 11:57:14 +0100 Subject: Allow setting the PropertyInfo class_name from GDScript --- modules/gdscript/gdscript.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules/gdscript/gdscript.cpp') 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 *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); } -- cgit v1.2.3