* Added copying curve resolution settings to the copy attributes (ctrl c) menu

This commit is contained in:
2005-10-03 14:44:48 +00:00
parent bec1e25720
commit 2e8d8f6b8f
2 changed files with 26 additions and 0 deletions

View File

@@ -2618,6 +2618,10 @@ 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_FONT) || (ob->type == OB_CURVE)) {
strcat(str, "|Curve Resolution%x25");
}
if(ob->type==OB_MESH){
strcat(str, "|Subdiv%x21");
@@ -2642,6 +2646,7 @@ void copy_attr(short event)
Object *ob, *obt;
Base *base;
Curve *cu, *cu1;
Nurb *nu;
void *poin1, *poin2=0;
if(G.scene->id.lib) return;
@@ -2781,6 +2786,24 @@ void copy_attr(short event)
base->object->recalc |= OB_RECALC_DATA;
}
}
else if(event==25) { /* curve resolution */
if ELEM(base->object->type, OB_CURVE, OB_FONT) {
cu= ob->data;
cu1= base->object->data;
cu1->resolu= cu->resolu;
nu= cu1->nurb.first;
while(nu) {
nu->resolu= cu1->resolu;
nu= nu->next;
}
base->object->recalc |= OB_RECALC_DATA;
}
}
else if(event==20) { /* particle settings */
PartEff *pa1, *pa2;
char *p1, *p2;