DRW: Fix vertex paint using original object for batch cache
authorClément Foucault <foucault.clem@gmail.com>
Mon, 17 Dec 2018 16:01:54 +0000 (17:01 +0100)
committerClément Foucault <foucault.clem@gmail.com>
Mon, 17 Dec 2018 16:11:45 +0000 (17:11 +0100)
source/blender/draw/modes/paint_vertex_mode.c

index 50aeece..21f87ef 100644 (file)
@@ -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;