mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Don't show 'show in files' popup for empty frames
This commit is contained in:
parent
e567f49cbb
commit
63f7e4d16e
1 changed files with 4 additions and 0 deletions
|
@ -1318,6 +1318,10 @@ void SpriteFramesEditor::_frame_list_gui_input(const Ref<InputEvent> &p_event) {
|
|||
Point2 pos = mb->get_position();
|
||||
right_clicked_frame = frame_list->get_item_at_position(pos, true);
|
||||
if (right_clicked_frame != -1) {
|
||||
Ref<Texture2D> tex = frames->get_frame_texture(edited_anim, right_clicked_frame);
|
||||
if (tex.is_null()) {
|
||||
return;
|
||||
}
|
||||
if (!menu) {
|
||||
menu = memnew(PopupMenu);
|
||||
add_child(menu);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue