[Bf-blender-cvs] [39994c32089] sculpt-dev: Object: Use theme select color for animation

Pablo Dobarro noreply at git.blender.org
Sun Apr 18 18:15:05 CEST 2021


Commit: 39994c320898fc171f03e89e3a1f660b7053e90b
Author: Pablo Dobarro
Date:   Thu Apr 15 20:26:45 2021 +0200
Branches: sculpt-dev
https://developer.blender.org/rB39994c320898fc171f03e89e3a1f660b7053e90b

Object: Use theme select color for animation

===================================================================

M	source/blender/editors/object/object_modes.c

===================================================================

diff --git a/source/blender/editors/object/object_modes.c b/source/blender/editors/object/object_modes.c
index 6b70ed085b0..594f953440e 100644
--- a/source/blender/editors/object/object_modes.c
+++ b/source/blender/editors/object/object_modes.c
@@ -73,6 +73,8 @@
 #include "ED_undo.h"
 #include "ED_view3d.h"
 
+#include "UI_resources.h"
+
 #include "WM_toolsystem.h"
 
 #include "ED_object.h" /* own include */
@@ -455,8 +457,7 @@ static void transfer_mode_draw(const bContext *UNUSED(C), ARegion *UNUSED(ar), v
   GPU_matrix_push();
   GPU_matrix_mul(cd->target_object->obmat);
 
-  const float col_base = 0.6f;
-  immUniformColor4f(col_base, col_base, col_base, 0.25 * cd->alpha);
+  immUniformThemeColorAlpha(TH_VERTEX_SELECT, 0.25 * cd->alpha);
 
   Mesh *mesh = cd->mesh;
   immBegin(GPU_PRIM_TRIS, cd->tottris * 3);



More information about the Bf-blender-cvs mailing list