summaryrefslogtreecommitdiff
path: root/core/object/script_language_extension.h
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-08-06 14:27:17 +0200
committerGitHub <noreply@github.com>2022-08-06 14:27:17 +0200
commit77d3ac700d5f528c0393d6aff1306e76f07b0d83 (patch)
tree31e3560386c2b6d2af4f2bb9a050ec0edae37de2 /core/object/script_language_extension.h
parentc81ef515030ba262c9e507a0453a8bc86258e309 (diff)
parent0e1f7e9f89e74ebf4b2dec04f26ffab13c32a237 (diff)
Merge pull request #63712 from object71/fix-export-issues
Diffstat (limited to 'core/object/script_language_extension.h')
-rw-r--r--core/object/script_language_extension.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/object/script_language_extension.h b/core/object/script_language_extension.h
index 10eacfd9f7..2869f4ad98 100644
--- a/core/object/script_language_extension.h
+++ b/core/object/script_language_extension.h
@@ -663,6 +663,14 @@ public:
if (native_info->get_property_list_func) {
uint32_t pcount;
const GDNativePropertyInfo *pinfo = native_info->get_property_list_func(instance, &pcount);
+
+#ifdef TOOLS_ENABLED
+ Ref<Script> script = get_script();
+ if (script->is_valid() && pcount > 0) {
+ p_list->push_back(script->get_class_category());
+ }
+#endif // TOOLS_ENABLED
+
for (uint32_t i = 0; i < pcount; i++) {
p_list->push_back(PropertyInfo(pinfo[i]));
}