diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-07-03 08:50:29 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-07-03 08:50:29 +0200 |
commit | 6a13fdcae3662975c101213d47a1eb3a7db63cb3 (patch) | |
tree | e1e0d224137b33042f3603b2ce2744b479da7b62 | |
parent | 8f749ca3ef37467cb7fc372e03db48aeca6a857e (diff) | |
parent | 7cecdc0dabe3e04404ea4b248b5516908ebeb879 (diff) | |
download | redot-engine-6a13fdcae3662975c101213d47a1eb3a7db63cb3.tar.gz |
Merge pull request #93846 from jsjtxietian/null-frames
Fix sprite frame editor crash with null `frames` pointer
-rw-r--r-- | editor/plugins/sprite_frames_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/sprite_frames_editor_plugin.cpp b/editor/plugins/sprite_frames_editor_plugin.cpp index 27056a6cc4..48087e3166 100644 --- a/editor/plugins/sprite_frames_editor_plugin.cpp +++ b/editor/plugins/sprite_frames_editor_plugin.cpp @@ -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; |