Fix T60999: Duplifaced objects are not drawn in edit mode

Seems to be rather trivial change to use proper cage mesh nowadays.
This commit is contained in:
Sergey Sharybin 2019-02-12 17:04:59 +01:00
parent 5aacad16e0
commit f16763a01d
Notes: blender-bot 2023-02-14 08:42:54 +01:00
Referenced by issue #61487, crash when hitting quick favorites key outside of open preferences window
Referenced by issue #60999, Duplifaced objects are not drawn in edit mode
Referenced by issue #60905, Crash when using Smooth Tool
1 changed files with 2 additions and 4 deletions

View File

@ -403,8 +403,7 @@ static void make_duplis_verts(const DupliContext *ctx)
* during meta balls evaluation. But even without those all the objects
* which are needed for correct instancing are already evaluated. */
if (vdd.edit_btmesh != NULL) {
/* XXX TODO replace with equivalent of editbmesh_get_eval_cage when available. */
vdd.me_eval = parent->runtime.mesh_deform_eval;
vdd.me_eval = vdd.edit_btmesh->mesh_eval_cage;
}
else {
vdd.me_eval = parent->runtime.mesh_eval;
@ -678,8 +677,7 @@ static void make_duplis_faces(const DupliContext *ctx)
* during meta balls evaluation. But even without those all the objects
* which are needed for correct instancing are already evaluated. */
if (em != NULL) {
/* XXX TODO replace with equivalent of editbmesh_get_eval_cage when available. */
fdd.me_eval = parent->runtime.mesh_deform_eval;
fdd.me_eval = em->mesh_eval_cage;
}
else {
fdd.me_eval = parent->runtime.mesh_eval;