[Bf-blender-cvs] [011fca7f767] temp-vertex-paint: temp-vertex-paint: Update a couple of comments

Joseph Eagar noreply at git.blender.org
Fri Feb 25 23:36:38 CET 2022


Commit: 011fca7f7672bebf71fc2efc82c734863f508057
Author: Joseph Eagar
Date:   Fri Feb 25 14:36:20 2022 -0800
Branches: temp-vertex-paint
https://developer.blender.org/rB011fca7f7672bebf71fc2efc82c734863f508057

temp-vertex-paint: Update a couple of comments

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

M	source/blender/editors/sculpt_paint/paint_vertex_color_utils.hh

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

diff --git a/source/blender/editors/sculpt_paint/paint_vertex_color_utils.hh b/source/blender/editors/sculpt_paint/paint_vertex_color_utils.hh
index 66d4ab87b4d..9264511d10e 100644
--- a/source/blender/editors/sculpt_paint/paint_vertex_color_utils.hh
+++ b/source/blender/editors/sculpt_paint/paint_vertex_color_utils.hh
@@ -18,10 +18,10 @@ struct ByteTraits {
   using ValueType = uchar;
   using BlendType = int;
 
-  inline static const uchar range = 255;
-  inline static const float frange = 255.0f;
+  inline static const uchar range = 255; /* Zero-based maximum value. */
+  inline static const float frange = 255.0f; /* Convienent floating-point version of range. */
   inline static const int cmpRange = 254;
-  inline static const int expandedRange = 256;
+  inline static const int expandedRange = 256; /* One-based maxium value. */ 
 
   inline static const int bytes = 1;
   inline static const float unit = 255.0f;



More information about the Bf-blender-cvs mailing list