Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2018-09-25 17:42:23 +0300
committerClément Foucault <foucault.clem@gmail.com>2018-09-25 23:51:54 +0300
commit05d0e5315b99f939687838b50519d0702b4c8fb4 (patch)
treed32f27dae941a3c04568dc78de586ce7d49c313f
parent9f6978a1ba4a4e5a7cd84b4b10a733563bdb027c (diff)
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.
-rw-r--r--source/blender/draw/modes/paint_weight_mode.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/source/blender/draw/modes/paint_weight_mode.c b/source/blender/draw/modes/paint_weight_mode.c
index 3826e8af8fa..68d1ffab2e6 100644
--- a/source/blender/draw/modes/paint_weight_mode.c
+++ b/source/blender/draw/modes/paint_weight_mode.c
@@ -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;