Skip to content

Commit

Permalink
Merge pull request #84625 from KoBeWi/yeet_sprite_node()
Browse files Browse the repository at this point in the history
Remove AnimatedSprite pointer when clearing editor
  • Loading branch information
akien-mga committed Nov 9, 2023
2 parents e769a75 + 55f7d49 commit d1381bb
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 d1381bb

Please sign in to comment.