Skip to content

armgit / godot

Public Imported from GitHub
0

Godot Engine – Multi-platform 2D and 3D game engine

Fix godot crash in SpriteFrames in the AnimatedSprite2D and 3D

Thiago-Weissf03e744178d4
diff --git a/editor/scene/sprite_frames_editor_plugin.cpp b/editor/scene/sprite_frames_editor_plugin.cpp
index e589874c70e..24ecadc51b6 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<SpriteFrames> p_frames) {
if (p_frames.is_null()) {
frames.unref();
_remove_sprite_node();
+ close();
return;
}