Skip to content

Commit

Permalink
Remove AnimatedSprite pointer when clearing editor
Browse files Browse the repository at this point in the history
  • Loading branch information
KoBeWi committed Nov 8, 2023
1 parent 3e7f638 commit 55f7d49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion editor/plugins/sprite_frames_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1322,8 +1322,9 @@ void SpriteFramesEditor::_edit() {
void SpriteFramesEditor::edit(Ref<SpriteFrames> p_frames) {
_update_stop_icon();

if (!p_frames.is_valid()) {
if (p_frames.is_null()) {
frames.unref();
_remove_sprite_node();
hide();
return;
}
Expand Down

0 comments on commit 55f7d49

Please sign in to comment.