[Bf-blender-cvs] [8f68cff01b8] master: Cleanup: name enums

Jacques Lucke noreply at git.blender.org
Thu Mar 17 12:49:35 CET 2022


Commit: 8f68cff01b85bfde18c9442e6a638eda181ee159
Author: Jacques Lucke
Date:   Thu Mar 17 12:42:01 2022 +0100
Branches: master
https://developer.blender.org/rB8f68cff01b85bfde18c9442e6a638eda181ee159

Cleanup: name enums

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

M	source/blender/makesdna/DNA_brush_enums.h
M	source/blender/makesdna/DNA_brush_types.h

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

diff --git a/source/blender/makesdna/DNA_brush_enums.h b/source/blender/makesdna/DNA_brush_enums.h
index f8ffe6a0a47..90763dae600 100644
--- a/source/blender/makesdna/DNA_brush_enums.h
+++ b/source/blender/makesdna/DNA_brush_enums.h
@@ -602,10 +602,10 @@ typedef enum eBlurKernelType {
 } eBlurKernelType;
 
 /* Brush.falloff_shape */
-enum {
+typedef enum eBrushFalloffShape {
   PAINT_FALLOFF_SHAPE_SPHERE = 0,
   PAINT_FALLOFF_SHAPE_TUBE = 1,
-};
+} eBrushFalloffShape;
 
 #define MAX_BRUSH_PIXEL_RADIUS 500
 #define GP_MAX_BRUSH_PIXEL_RADIUS 1000
diff --git a/source/blender/makesdna/DNA_brush_types.h b/source/blender/makesdna/DNA_brush_types.h
index fe80220b1dd..78e3a64e07e 100644
--- a/source/blender/makesdna/DNA_brush_types.h
+++ b/source/blender/makesdna/DNA_brush_types.h
@@ -256,7 +256,7 @@ typedef struct Brush {
   char gpencil_sculpt_tool;
   /** Active grease pencil weight tool. */
   char gpencil_weight_tool;
-  /** Active curves sculpt tool. */
+  /** Active curves sculpt tool (#eBrushCurvesSculptTool). */
   char curves_sculpt_tool;
   char _pad1[5];



More information about the Bf-blender-cvs mailing list