Godot Engine – Multi-platform 2D and 3D game engine
Fix crash in spriteframes editor
Jordyfeldb30b3cf69d8
diff --git a/editor/scene/sprite_frames_editor_plugin.cpp b/editor/scene/sprite_frames_editor_plugin.cppindex 8bbec7715b5..e589874c70e 100644--- a/editor/scene/sprite_frames_editor_plugin.cpp+++ b/editor/scene/sprite_frames_editor_plugin.cpp@@ -2042,7 +2042,7 @@ void SpriteFramesEditor::_fetch_sprite_node() {}bool show_node_edit = false;- if (selected->has_method("get_sprite_frames")) {+ if (selected && selected->has_method("get_sprite_frames")) {if (frames != selected->call("get_sprite_frames")) {_remove_sprite_node();} else {