Skip to content

Commit 6a13fdc

Browse files
committed
Merge pull request #93846 from jsjtxietian/null-frames
Fix sprite frame editor crash with null `frames` pointer
2 parents 8f749ca + 7cecdc0 commit 6a13fdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

editor/plugins/sprite_frames_editor_plugin.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -953,7 +953,7 @@ void SpriteFramesEditor::_sync_animation() {
953953
}
954954

955955
void SpriteFramesEditor::_select_animation(const String &p_name, bool p_update_node) {
956-
if (!frames->has_animation(p_name)) {
956+
if (frames.is_null() || !frames->has_animation(p_name)) {
957957
return;
958958
}
959959
edited_anim = p_name;

0 commit comments

Comments
 (0)