Commit: 144178bacf251885d710537b719e3a001685821d
Author: Clément Foucault
Date:   Mon Dec 17 17:01:54 2018 +0100
Branches: blender2.8
https://developer.blender.org/rB144178bacf251885d710537b719e3a001685821d

DRW: Fix vertex paint using original object for batch cache

===================================================================

M       source/blender/draw/modes/paint_vertex_mode.c

===================================================================

diff --git a/source/blender/draw/modes/paint_vertex_mode.c 
b/source/blender/draw/modes/paint_vertex_mode.c
index 50aeeceecc9..21f87ef58da 100644
--- a/source/blender/draw/modes/paint_vertex_mode.c
+++ b/source/blender/draw/modes/paint_vertex_mode.c
@@ -149,8 +149,6 @@ static void PAINT_VERTEX_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.vertex_paint_mode_opacity 
!= 0.0f;

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to