Skip to content

Commit

Permalink
Fix sprite frame editor crash with null frames pounter
Browse files Browse the repository at this point in the history
  • Loading branch information
jsjtxietian committed Jul 3, 2024
1 parent 446e7a7 commit 7cecdc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/plugins/sprite_frames_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -953,7 +953,7 @@ void SpriteFramesEditor::_sync_animation() {
}

void SpriteFramesEditor::_select_animation(const String &p_name, bool p_update_node) {
if (!frames->has_animation(p_name)) {
if (frames.is_null() || !frames->has_animation(p_name)) {
return;
}
edited_anim = p_name;
Expand Down

0 comments on commit 7cecdc0

Please sign in to comment.