1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-01 16:38:31 +00:00

Fix crash when capturing ObjectDB snapshot

This commit is contained in:
Mikael Hermansson
2025-12-01 13:27:03 +01:00
parent 7a207b3eaa
commit 4b573fb080

View File

@@ -817,11 +817,13 @@ void SceneDebuggerObject::_parse_script_properties(Script *p_script, ScriptInsta
HashSet<String> exported_members; HashSet<String> exported_members;
List<PropertyInfo> pinfo; if (p_instance) {
p_instance->get_property_list(&pinfo); List<PropertyInfo> pinfo;
for (const PropertyInfo &E : pinfo) { p_instance->get_property_list(&pinfo);
if (E.usage & (PROPERTY_USAGE_EDITOR | PROPERTY_USAGE_CATEGORY)) { for (const PropertyInfo &E : pinfo) {
exported_members.insert(E.name); if (E.usage & (PROPERTY_USAGE_EDITOR | PROPERTY_USAGE_CATEGORY)) {
exported_members.insert(E.name);
}
} }
} }