mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 04:06:14 +00:00
Fix crash when inserting keyframes with empty properties array
This commit is contained in:
parent
76fa7b2914
commit
d1ba152197
@ -2724,7 +2724,7 @@ void EditorInspector::_parse_added_editors(VBoxContainer *current_vbox, EditorIn
|
|||||||
for (const EditorInspectorPlugin::AddedEditor &F : ped->added_editors) {
|
for (const EditorInspectorPlugin::AddedEditor &F : ped->added_editors) {
|
||||||
EditorProperty *ep = Object::cast_to<EditorProperty>(F.property_editor);
|
EditorProperty *ep = Object::cast_to<EditorProperty>(F.property_editor);
|
||||||
|
|
||||||
if (ep && current_favorites.has(F.properties[0])) {
|
if (ep && !F.properties.is_empty() && current_favorites.has(F.properties[0])) {
|
||||||
ep->favorited = true;
|
ep->favorited = true;
|
||||||
favorites_vbox->add_child(F.property_editor);
|
favorites_vbox->add_child(F.property_editor);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user