Skip to content

Commit fe799de

Browse files
committed
Merge pull request #103050 from matheusmdx/fix-show-in-filesystem-crash
Don't show `Show in Filesystem` Popup for empty frames in `SpriteFrames` editor
2 parents 413b794 + 63f7e4d commit fe799de

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

editor/plugins/sprite_frames_editor_plugin.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -1318,6 +1318,10 @@ void SpriteFramesEditor::_frame_list_gui_input(const Ref<InputEvent> &p_event) {
13181318
Point2 pos = mb->get_position();
13191319
right_clicked_frame = frame_list->get_item_at_position(pos, true);
13201320
if (right_clicked_frame != -1) {
1321+
Ref<Texture2D> tex = frames->get_frame_texture(edited_anim, right_clicked_frame);
1322+
if (tex.is_null()) {
1323+
return;
1324+
}
13211325
if (!menu) {
13221326
menu = memnew(PopupMenu);
13231327
add_child(menu);

0 commit comments

Comments
 (0)