forked from bartvdbraak/blender
- fix convert XXX _to mesh to recalc mesh data
This commit is contained in:
parent
e34b1b3276
commit
8a947c27ab
@ -2188,6 +2188,7 @@ void convertmenu(void)
|
|||||||
ob->flag |= OB_DONE;
|
ob->flag |= OB_DONE;
|
||||||
|
|
||||||
ob1= copy_object(ob);
|
ob1= copy_object(ob);
|
||||||
|
ob1->recalc |= OB_RECALC;
|
||||||
|
|
||||||
basen= MEM_mallocN(sizeof(Base), "duplibase");
|
basen= MEM_mallocN(sizeof(Base), "duplibase");
|
||||||
*basen= *base;
|
*basen= *base;
|
||||||
@ -2244,7 +2245,10 @@ void convertmenu(void)
|
|||||||
if(cu->id.us>1) {
|
if(cu->id.us>1) {
|
||||||
ob1= G.main->object.first;
|
ob1= G.main->object.first;
|
||||||
while(ob1) {
|
while(ob1) {
|
||||||
if(ob1->data==cu) ob1->type= OB_CURVE;
|
if(ob1->data==cu) {
|
||||||
|
ob1->type= OB_CURVE;
|
||||||
|
ob1->recalc |= OB_RECALC;
|
||||||
|
}
|
||||||
ob1= ob1->id.next;
|
ob1= ob1->id.next;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2279,6 +2283,7 @@ void convertmenu(void)
|
|||||||
ob->flag |= OB_DONE;
|
ob->flag |= OB_DONE;
|
||||||
|
|
||||||
ob1= copy_object(ob);
|
ob1= copy_object(ob);
|
||||||
|
ob1->recalc |= OB_RECALC;
|
||||||
|
|
||||||
basen= MEM_mallocN(sizeof(Base), "duplibase");
|
basen= MEM_mallocN(sizeof(Base), "duplibase");
|
||||||
*basen= *base;
|
*basen= *base;
|
||||||
@ -2316,6 +2321,8 @@ void convertmenu(void)
|
|||||||
allqueue(REDRAWOOPS, 0);
|
allqueue(REDRAWOOPS, 0);
|
||||||
allqueue(REDRAWBUTSEDIT, 0);
|
allqueue(REDRAWBUTSEDIT, 0);
|
||||||
BIF_undo_push("Convert Object");
|
BIF_undo_push("Convert Object");
|
||||||
|
|
||||||
|
DAG_scene_flush_update(G.scene);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Change subdivision properties of mesh object ob, if
|
/* Change subdivision properties of mesh object ob, if
|
||||||
|
Loading…
Reference in New Issue
Block a user