Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_brush_enums.h
| Show First 20 Lines • Show All 148 Lines • ▼ Show 20 Lines | |||||
| /* BrushGpencilSettings->gp_eraser_mode */ | /* BrushGpencilSettings->gp_eraser_mode */ | ||||
| typedef enum eGP_BrushEraserMode { | typedef enum eGP_BrushEraserMode { | ||||
| GP_BRUSH_ERASER_SOFT = 0, | GP_BRUSH_ERASER_SOFT = 0, | ||||
| GP_BRUSH_ERASER_HARD = 1, | GP_BRUSH_ERASER_HARD = 1, | ||||
| GP_BRUSH_ERASER_STROKE = 2, | GP_BRUSH_ERASER_STROKE = 2, | ||||
| } eGP_BrushEraserMode; | } eGP_BrushEraserMode; | ||||
| /* BrushGpencilSettings->caps_type */ | |||||
| typedef enum eGP_BrushCapsType { | |||||
HooglyBoogly: I think this should reuse the existing `eGPDstroke_Caps` enum, I don't see a reason to add a… | |||||
| GP_BRUSH_CAPS_ROUNDED = 0, | |||||
| GP_BRUSH_CAPS_FLAT = 1, | |||||
| } eGP_BrushCapsType; | |||||
| /* BrushGpencilSettings->brush_draw_mode */ | /* BrushGpencilSettings->brush_draw_mode */ | ||||
| typedef enum eGP_BrushMode { | typedef enum eGP_BrushMode { | ||||
| GP_BRUSH_MODE_ACTIVE = 0, | GP_BRUSH_MODE_ACTIVE = 0, | ||||
| GP_BRUSH_MODE_MATERIAL = 1, | GP_BRUSH_MODE_MATERIAL = 1, | ||||
| GP_BRUSH_MODE_VERTEXCOLOR = 2, | GP_BRUSH_MODE_VERTEXCOLOR = 2, | ||||
| } eGP_BrushMode; | } eGP_BrushMode; | ||||
| /* BrushGpencilSettings default brush icons */ | /* BrushGpencilSettings default brush icons */ | ||||
| ▲ Show 20 Lines • Show All 454 Lines • Show Last 20 Lines | |||||
I think this should reuse the existing eGPDstroke_Caps enum, I don't see a reason to add a new one.
This adds a new place to maintain when adding types, more defines to find when reading code, etc.