diff options
author | Alexander Gavrilov <angavrilov@gmail.com> | 2018-09-30 18:07:38 +0300 |
---|---|---|
committer | Alexander Gavrilov <angavrilov@gmail.com> | 2018-10-01 11:02:24 +0300 |
commit | 534009098ea094aa1f3b5298101e5d9e0a3cb1dc (patch) | |
tree | 0d34cbeb8a52ad1349f96ede7c994278dc19cf67 /source/blender/makesrna/intern | |
parent | d64e60340f5b361208d243172419a63efeed91cb (diff) |
Remove obsolete weight paint color computation code.
The new weight paint drawing code converts weight to color
directly in the shader, so the old CD_PREVIEW_MLOOPCOL based
code is not needed anymore.
Diffstat (limited to 'source/blender/makesrna/intern')
-rw-r--r-- | source/blender/makesrna/intern/rna_userdef.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/source/blender/makesrna/intern/rna_userdef.c b/source/blender/makesrna/intern/rna_userdef.c index 34211e65b70..4af61f66864 100644 --- a/source/blender/makesrna/intern/rna_userdef.c +++ b/source/blender/makesrna/intern/rna_userdef.c @@ -328,9 +328,6 @@ static void rna_UserDef_weight_color_update(Main *bmain, Scene *scene, PointerRN { Object *ob; - bTheme *btheme = UI_GetTheme(); - BKE_mesh_runtime_color_band_store((U.flag & USER_CUSTOM_RANGE) ? (&U.coba_weight) : NULL, btheme->tv3d.vertex_unreferenced); - for (ob = bmain->object.first; ob; ob = ob->id.next) { if (ob->mode & OB_MODE_WEIGHT_PAINT) DEG_id_tag_update(&ob->id, OB_RECALC_DATA); |