Browse Source

Merge pull request #3216 from nounoursheureux/spriteframes

Show the texture name after the frame number in the SpriteFrames editor
Rémi Verschelde 9 năm trước cách đây
mục cha
commit
30ce222205
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      tools/editor/plugins/sprite_frames_editor_plugin.cpp

+ 1 - 1
tools/editor/plugins/sprite_frames_editor_plugin.cpp

@@ -346,7 +346,7 @@ void SpriteFramesEditor::_update_library() {
 			ti->set_text(0,"Frame "+itos(i)+" (empty)");
 
 		} else {
-			ti->set_text(0,"Frame "+itos(i));
+			ti->set_text(0,"Frame "+itos(i)+" ("+frames->get_frame(i)->get_name()+")");
 			ti->set_icon(0,frames->get_frame(i));
 		}
 		if (frames->get_frame(i).is_valid())