diff options
author | jsjtxietian <jsjtxietian@outlook.com> | 2024-07-02 11:57:50 +0800 |
---|---|---|
committer | jsjtxietian <jsjtxietian@outlook.com> | 2024-07-03 10:58:25 +0800 |
commit | 7cecdc0dabe3e04404ea4b248b5516908ebeb879 (patch) | |
tree | 7d396417997ab33c98fc03c209639fb006d1a4de | |
parent | 446e7a7c228d19341392ec3b02417244fe7dfe03 (diff) | |
download | redot-engine-7cecdc0dabe3e04404ea4b248b5516908ebeb879.tar.gz |
Fix sprite frame editor crash with null `frames` pounter
-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; |