Weight Paint: Fix weight paint overlay not displaying correctly
This was because weight paint was using the original obj to show weights. But the mesh can be deformed by the armature and this is not visible on the original object.
This commit is contained in:
parent
9f6978a1ba
commit
05d0e5315b
|
@ -173,8 +173,6 @@ static void PAINT_WEIGHT_cache_populate(void *vedata, Object *ob)
|
|||
const View3D *v3d = draw_ctx->v3d;
|
||||
|
||||
if ((ob->type == OB_MESH) && (ob == draw_ctx->obact)) {
|
||||
/* We're always painting on original, display original data. */
|
||||
ob = DEG_get_original_object(ob);
|
||||
const Mesh *me = ob->data;
|
||||
const bool use_wire = (v3d->overlay.paint_flag & V3D_OVERLAY_PAINT_WIRE) != 0;
|
||||
const bool use_surface = v3d->overlay.weight_paint_mode_opacity != 0.0f;
|
||||
|
|
Loading…
Reference in New Issue