mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 13:49:54 +00:00
Fix crash when capturing ObjectDB snapshot
This commit is contained in:
parent
7a207b3eaa
commit
4b573fb080
1 changed files with 7 additions and 5 deletions
|
|
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue