Add null check for SpriteFramesEditor's SpriteFrames

This commit is contained in:
chocola-mint committed 2025-03-31 22:16:49 +09:00
1 parent e585e6a3eb
commit 19e8faae30
1 file changed
+8
@@ -1294,6 +1294,10 @@ void SpriteFramesEditor::_animation_speed_resized() {
}
void SpriteFramesEditor::_animation_speed_changed(double p_value) {
if (frames.is_null()) {
return;
}
if (updating) {
return;
}
@@ -1374,6 +1378,10 @@ void SpriteFramesEditor::_frame_list_item_selected(int p_index, bool p_selected)
}
void SpriteFramesEditor::_frame_duration_changed(double p_value) {
if (frames.is_null()) {
return;
}
if (updating) {
return;
}