diff options
author | Ton Roosendaal <ton@blender.org> | 2006-03-14 14:29:06 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2006-03-14 14:29:06 +0300 |
commit | 0b803303841344b5f097153ec590a4d38fcb5bcd (patch) | |
tree | fffedf9db5128eb36039a75b4f0e734a12c55076 /source | |
parent | ba12d909c9706954c59e47fd32e4b09f89737416 (diff) |
CTRL+C copy menu now has "Copy UV orco" for curves/surfaces
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/src/editobject.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/source/blender/src/editobject.c b/source/blender/src/editobject.c index b63778f9378..f0a048ca3da 100644 --- a/source/blender/src/editobject.c +++ b/source/blender/src/editobject.c @@ -2693,7 +2693,7 @@ void copy_attr_menu() } if(ob->type == OB_FONT) strcat(str, "|Font Settings%x18|Bevel Settings%x19"); - if(ob->type == OB_CURVE) strcat(str, "|Bevel Settings%x19"); + if(ob->type == OB_CURVE) strcat(str, "|Bevel Settings%x19|UV Orco%x28"); if((ob->type == OB_FONT) || (ob->type == OB_CURVE)) { strcat(str, "|Curve Resolution%x25"); @@ -2954,7 +2954,7 @@ void copy_attr(short event) else if(event==26) { copy_nlastrips(&base->object->nlastrips, &ob->nlastrips); } - else if(event==27) { + else if(event==27) { /* autosmooth */ if (base->object->type==OB_MESH) { Mesh *me= ob->data; Mesh *cme= base->object->data; @@ -2965,6 +2965,17 @@ void copy_attr(short event) cme->flag &= ~ME_AUTOSMOOTH; } } + else if(event==28) { /* UV orco */ + if ELEM(base->object->type, OB_CURVE, OB_SURF) { + cu= ob->data; + cu1= base->object->data; + + if(cu->flag & CU_UV_ORCO) + cu1->flag |= CU_UV_ORCO; + else + cu1->flag &= ~CU_UV_ORCO; + } + } } } base= base->next; |