Merge pull request #84625 from KoBeWi/yeet_sprite_node()

Remove AnimatedSprite pointer when clearing editor
This commit is contained in:
Rémi Verschelde 2023-11-09 11:48:12 +01:00
commit d1381bbca2
No known key found for this signature in database
GPG Key ID: C3336907360768E1

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