Page Menu
Home
Search
Configure Global Search
Log In
Files
F1271
obname.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Authored By
Johnny Matthews (guitargeek)
Nov 13 2013, 12:55 PM
Size
1 KB
Subscribers
None
obname.patch
View Options
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);
File Metadata
Details
Mime Type
text/x-diff
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
cb/65/040699b33ade8a589871c3fc6f0a
Event Timeline
Log In to Comment