diff --git a/editor/scene/sprite_frames_editor_plugin.cpp b/editor/scene/sprite_frames_editor_plugin.cpp index 48583e7bc8..7271b3fb75 100644 --- a/editor/scene/sprite_frames_editor_plugin.cpp +++ b/editor/scene/sprite_frames_editor_plugin.cpp @@ -1808,6 +1808,7 @@ void SpriteFramesEditor::edit(Ref p_frames) { if (p_frames.is_null()) { frames.unref(); _remove_sprite_node(); + close(); return; }