浏览代码

Show the texture name after the frame number in the SpriteFrames editor

Nounours Heureux 9 年之前
父节点
当前提交
07d8558eee
共有 1 个文件被更改,包括 1 次插入1 次删除
  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)");
 			ti->set_text(0,"Frame "+itos(i)+" (empty)");
 
 
 		} else {
 		} 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));
 			ti->set_icon(0,frames->get_frame(i));
 		}
 		}
 		if (frames->get_frame(i).is_valid())
 		if (frames->get_frame(i).is_valid())