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:
authorCampbell Barton <ideasman42@gmail.com>2019-02-28 06:47:21 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-02-28 06:57:03 +0300
commit60a1ccbe2ce33c07b13b273582946abf5cd7753c (patch)
treed2381c3298a94ddb9582c60f7f3b4bbd14736eab /source/blender/draw/modes/shaders/edit_mesh_overlay_common_lib.glsl
parente735894070ac3097628b36984a14654bf1c9bd57 (diff)
DRW: use active color for face dot
Matches active vert/edge modes.
Diffstat (limited to 'source/blender/draw/modes/shaders/edit_mesh_overlay_common_lib.glsl')
-rw-r--r--source/blender/draw/modes/shaders/edit_mesh_overlay_common_lib.glsl5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/draw/modes/shaders/edit_mesh_overlay_common_lib.glsl b/source/blender/draw/modes/shaders/edit_mesh_overlay_common_lib.glsl
index a1b3f9762a0..6563945af39 100644
--- a/source/blender/draw/modes/shaders/edit_mesh_overlay_common_lib.glsl
+++ b/source/blender/draw/modes/shaders/edit_mesh_overlay_common_lib.glsl
@@ -58,7 +58,10 @@ vec4 EDIT_MESH_face_color(int face_flag)
vec4 EDIT_MESH_facedot_color(float facedot_flag)
{
- if (facedot_flag != 0.0) {
+ if (facedot_flag < 0.0f) {
+ return colorEditMeshActive;
+ }
+ else if (facedot_flag > 0.0f) {
return colorFaceDot;
}
else {