Added rename/delete popups to the file and imageselect windows.
[blender.git] / source / blender / src / drawview.c
index 79ce91643004e6ca733d03ef41352c3edeec4d68..5595f88a3ef6c667588d0a40df2c1d700e9940ef 100644 (file)
@@ -765,6 +765,19 @@ void drawname(Object *ob)
        BMF_DrawString(G.font, ob->id.name+2);
 }
 
+
+static void draw_selected_name(char *name)
+{
+       char info[128];
+
+       sprintf(info, "(%d) %s", CFRA, name);
+
+       cpack(0xFFFFFF);
+       glRasterPos2i(30,  10);
+       BMF_DrawString(G.fonts, info);
+}
+
+
 static void draw_view_icon(void)
 {
        BIFIconID icon;
@@ -975,6 +988,9 @@ void drawview3dspace(ScrArea *sa, void *spacedata)
        if(G.vd->persp>1) drawviewborder();
        drawcursor();
        draw_view_icon();
+
+       ob= OBACT;
+       if(ob!=0 && (U.uiflag & DRAWVIEWINFO)) draw_selected_name(ob->id.name+2);
        
        persp(1);