[Bf-blender-cvs] [79ef6f30f01] blender2.8: UI: Use primary gizmo color for loopcut edge pre-select.
Pablo Vazquez
noreply at git.blender.org
Wed Nov 21 19:15:01 CET 2018
Commit: 79ef6f30f01fff2cd4c09b03684f24402c25bf21
Author: Pablo Vazquez
Date: Wed Nov 21 19:14:56 2018 +0100
Branches: blender2.8
https://developer.blender.org/rB79ef6f30f01fff2cd4c09b03684f24402c25bf21
UI: Use primary gizmo color for loopcut edge pre-select.
Instead of hardcoded pink.
===================================================================
M source/blender/editors/mesh/editmesh_preselect_edgering.c
===================================================================
diff --git a/source/blender/editors/mesh/editmesh_preselect_edgering.c b/source/blender/editors/mesh/editmesh_preselect_edgering.c
index ce62998a133..3b31b9c15f6 100644
--- a/source/blender/editors/mesh/editmesh_preselect_edgering.c
+++ b/source/blender/editors/mesh/editmesh_preselect_edgering.c
@@ -35,6 +35,8 @@
#include "ED_mesh.h"
+#include "UI_resources.h"
+
/* -------------------------------------------------------------------- */
/** \name Mesh Edge Ring Pre-Select
* Public API:
@@ -174,7 +176,7 @@ void EDBM_preselect_edgering_draw(
uint pos = GPU_vertformat_attr_add(immVertexFormat(), "pos", GPU_COMP_F32, 3, GPU_FETCH_FLOAT);
immBindBuiltinProgram(GPU_SHADER_3D_UNIFORM_COLOR);
- immUniformColor3ub(255, 0, 255);
+ immUniformThemeColor3(TH_GIZMO_PRIMARY);
if (psel->edges_len > 0) {
immBegin(GPU_PRIM_LINES, psel->edges_len * 2);
More information about the Bf-blender-cvs
mailing list