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:
authorAlexander Gavrilov <angavrilov@gmail.com>2018-09-23 20:41:10 +0300
committerAlexander Gavrilov <angavrilov@gmail.com>2018-09-25 18:44:57 +0300
commitaf998b40a0d1cd1615ab836c6214523169d4dd42 (patch)
tree1c2a05cf7fa7ccf7b35e8501eba5a99ab5e51071 /source/blender/draw/modes/paint_weight_mode.c
parentbd51cada8db64e45cabca66cd61438c1ae2bdf25 (diff)
Implement correct drawing of advanced Weight display features.
This adds existing behavior from calc_weightpaint_vert_array that was missing from the new rendering code: - No selected Vertex Group displays as a solid pink color. - Zero weight displays as alert color depending on Options. - Multipaint mode correctly displays collective weight. In order to properly implement this variety, a data structure holding all relevant parameters is introduced. Reviewers: fclem, campbellbarton Subscribers: jbakker Differential Revision: https://developer.blender.org/D3722
Diffstat (limited to 'source/blender/draw/modes/paint_weight_mode.c')
-rw-r--r--source/blender/draw/modes/paint_weight_mode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/modes/paint_weight_mode.c b/source/blender/draw/modes/paint_weight_mode.c
index c4608dfd397..3826e8af8fa 100644
--- a/source/blender/draw/modes/paint_weight_mode.c
+++ b/source/blender/draw/modes/paint_weight_mode.c
@@ -183,7 +183,7 @@ static void PAINT_WEIGHT_cache_populate(void *vedata, Object *ob)
struct GPUBatch *geom;
if (use_surface) {
- geom = DRW_cache_mesh_surface_weights_get(ob);
+ geom = DRW_cache_mesh_surface_weights_get(ob, draw_ctx->scene->toolsettings, true);
DRW_shgroup_call_add(stl->g_data->fweights_shgrp, geom, ob->obmat);
}