From 19e8faae3076ac375e7227c1444dfcfca3eb5a5e Mon Sep 17 00:00:00 2001 From: chocola-mint <56677134+chocola-mint@users.noreply.github.com> Date: Mon, 31 Mar 2025 18:53:05 +0900 Subject: [PATCH] Add null check for SpriteFramesEditor's SpriteFrames --- editor/plugins/sprite_frames_editor_plugin.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/editor/plugins/sprite_frames_editor_plugin.cpp b/editor/plugins/sprite_frames_editor_plugin.cpp index 13adc83095a..ee5e97ea381 100644 --- a/editor/plugins/sprite_frames_editor_plugin.cpp +++ b/editor/plugins/sprite_frames_editor_plugin.cpp @@ -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; }