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;

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to