Skip to content

Commit c374ce2

Browse files
committed
Merge pull request #104830 from chocola-mint/fix-#104822
Add null check for SpriteFramesEditor's SpriteFrames
2 parents 807ce83 + 19e8faa commit c374ce2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

editor/plugins/sprite_frames_editor_plugin.cpp

+8
Original file line numberDiff line numberDiff line change
@@ -1294,6 +1294,10 @@ void SpriteFramesEditor::_animation_speed_resized() {
12941294
}
12951295

12961296
void SpriteFramesEditor::_animation_speed_changed(double p_value) {
1297+
if (frames.is_null()) {
1298+
return;
1299+
}
1300+
12971301
if (updating) {
12981302
return;
12991303
}
@@ -1374,6 +1378,10 @@ void SpriteFramesEditor::_frame_list_item_selected(int p_index, bool p_selected)
13741378
}
13751379

13761380
void SpriteFramesEditor::_frame_duration_changed(double p_value) {
1381+
if (frames.is_null()) {
1382+
return;
1383+
}
1384+
13771385
if (updating) {
13781386
return;
13791387
}

0 commit comments

Comments
 (0)