You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
Remove AnimatedSprite pointer when clearing editor
This commit is contained in:
@@ -1322,8 +1322,9 @@ void SpriteFramesEditor::_edit() {
|
|||||||
void SpriteFramesEditor::edit(Ref<SpriteFrames> p_frames) {
|
void SpriteFramesEditor::edit(Ref<SpriteFrames> p_frames) {
|
||||||
_update_stop_icon();
|
_update_stop_icon();
|
||||||
|
|
||||||
if (!p_frames.is_valid()) {
|
if (p_frames.is_null()) {
|
||||||
frames.unref();
|
frames.unref();
|
||||||
|
_remove_sprite_node();
|
||||||
hide();
|
hide();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user