forked from bartvdbraak/blender
Bugfix #16662
Curve modifier on lattice suffered drawing updates, only when the system was not animated though, missed depsgraph calls then. Solved it by forcing lattice to always return displist for its vertices, that's same as for how mesh/curve works now.
This commit is contained in:
parent
d725e5f78e
commit
433c43932b
@ -915,7 +915,10 @@ void lattice_calc_modifiers(Object *ob)
|
||||
mti->deformVerts(md, ob, NULL, vertexCos, numVerts);
|
||||
}
|
||||
|
||||
if (vertexCos) {
|
||||
/* always displist to make this work like derivedmesh */
|
||||
if (!vertexCos) vertexCos = lattice_getVertexCos(ob, &numVerts);
|
||||
|
||||
{
|
||||
DispList *dl = MEM_callocN(sizeof(*dl), "lt_dl");
|
||||
dl->type = DL_VERTS;
|
||||
dl->parts = 1;
|
||||
|
@ -1199,7 +1199,12 @@ static void drawlattice(Object *ob)
|
||||
int use_wcol= 0;
|
||||
|
||||
lt= (ob==G.obedit)?editLatt:ob->data;
|
||||
|
||||
/* now we default make displist, this will modifiers work for non animated case */
|
||||
if(ob->disp.first==NULL)
|
||||
lattice_calc_modifiers(ob);
|
||||
dl= find_displist(&ob->disp, DL_VERTS);
|
||||
|
||||
if(ob==G.obedit) {
|
||||
cpack(0x004000);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user