You've already forked godot
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:
@@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user