You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-13 13:31:48 +00:00
Removed faulty function update after get_property_list.
The function tried to rearrange properties but that lead to problems with duplication or deleted properties. Implemented the logic that that function did inside the get_property_list both for tool scripts and non-tool scripts.
This commit is contained in:
@@ -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]));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user