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>2020-04-27 21:05:42 +0300
committerClément Foucault <foucault.clem@gmail.com>2020-04-27 21:05:42 +0300
commita1b1f2acd433e7e76cbb6111a6688277f7c1feaf (patch)
treee0adf6c91d085e37a022e81dbe72cf2f60ab8105 /source/blender/draw/engines/workbench
parentaf876b12f1f7925228a568d7ae1f412babf08114 (diff)
Workbench: Fix weight paint overlay and wireframe for infront object
This fix case where you have wireframe on top of infront objects but workbench AA conflicts and they appear to not be occluded. Also T74923 is still fixed but we extend the fix to not mess the case when using a mode that does not support infront.
Diffstat (limited to 'source/blender/draw/engines/workbench')
-rw-r--r--source/blender/draw/engines/workbench/workbench_effect_antialiasing.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/source/blender/draw/engines/workbench/workbench_effect_antialiasing.c b/source/blender/draw/engines/workbench/workbench_effect_antialiasing.c
index a7ddd1c547b..e2fd6e4d66a 100644
--- a/source/blender/draw/engines/workbench/workbench_effect_antialiasing.c
+++ b/source/blender/draw/engines/workbench/workbench_effect_antialiasing.c
@@ -151,11 +151,6 @@ static bool workbench_in_front_history_needed(WORKBENCH_Data *vedata)
return false;
}
- if (!obact || draw_ctx->object_mode != OB_MODE_WEIGHT_PAINT ||
- v3d->overlay.weight_paint_mode_opacity == 0.0) {
- return false;
- }
-
return true;
}