Skip to content

Commit

Permalink
Merge pull request #93846 from jsjtxietian/null-frames
Browse files Browse the repository at this point in the history
Fix sprite frame editor crash with null `frames` pointer
  • Loading branch information
akien-mga committed Jul 3, 2024
2 parents 8f749ca + 7cecdc0 commit 6a13fdc
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 6a13fdc

Please sign in to comment.