Remove AnimatedSprite pointer when clearing editor

This commit is contained in:
kobewi 2023-11-08 18:07:17 +01:00
parent 3e7f638d7b
commit 55f7d493ee
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}