Page MenuHome

obname.patch

File Metadata

Author
Johnny Matthews (guitargeek)
Created
Nov 13 2013, 12:55 PM

obname.patch

Index: source/blender/src/drawview.c
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/src/drawview.c,v
retrieving revision 1.163
diff -u -r1.163 drawview.c
--- source/blender/src/drawview.c 29 Sep 2005 21:31:47 -0000 1.163
+++ source/blender/src/drawview.c 1 Oct 2005 15:14:33 -0000
@@ -60,6 +60,7 @@
#include "DNA_curve_types.h"
#include "DNA_group_types.h"
#include "DNA_image_types.h"
+#include "DNA_key_types.h"
#include "DNA_lattice_types.h"
#include "DNA_mesh_types.h"
#include "DNA_meshdata_types.h"
@@ -1058,7 +1059,8 @@
static void draw_selected_name(Object *ob)
{
char info[128];
-
+ char shapes[75];
+
if(ob->type==OB_ARMATURE) {
char *name= NULL;
@@ -1085,6 +1087,24 @@
else
sprintf(info, "(%d) %s", CFRA, ob->id.name+2);
}
+ if(ob->type==OB_MESH) {
+ Key *key= NULL;
+ KeyBlock *kb = NULL;
+
+ shapes[0] = NULL;
+ key = ob_get_key(ob);
+ if(key){
+ kb = BLI_findlink(&key->block, ob->shapenr-1);
+ if(kb){
+ sprintf(shapes, ": %s ", kb->name);
+ if(ob->shapeflag == OB_SHAPE_LOCK){
+ sprintf(shapes, "%s (Pinned)",shapes);
+ }
+ }
+ }
+ sprintf(info, "(%d) %s %s", CFRA, ob->id.name+2,shapes );
+ }
+
else sprintf(info, "(%d) %s", CFRA, ob->id.name+2);
BIF_ThemeColor(TH_TEXT_HI);

Event Timeline