Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_scene_types.h
| Show First 20 Lines • Show All 988 Lines • ▼ Show 20 Lines | |||||
| typedef struct UvSculpt { | typedef struct UvSculpt { | ||||
| Paint paint; | Paint paint; | ||||
| } UvSculpt; | } UvSculpt; | ||||
| /* grease pencil drawing brushes */ | /* grease pencil drawing brushes */ | ||||
| typedef struct GpPaint { | typedef struct GpPaint { | ||||
| Paint paint; | Paint paint; | ||||
| int flag; | |||||
| char _pad[4]; | |||||
| } GpPaint; | } GpPaint; | ||||
| /* GpPaint.flag */ | |||||
| enum { | |||||
| /* weight paint only */ | |||||
| GPPAINT_FLAG_USE_VERTEXCOLOR = (1 << 0), | |||||
| }; | |||||
| /* Grease pencil vertex paint. */ | |||||
| typedef struct GpVertexPaint { | |||||
| Paint paint; | |||||
| int flag; | |||||
| char _pad[4]; | |||||
| } GpVertexPaint; | |||||
| /* Grease pencil sculpt paint. */ | |||||
| typedef struct GpSculptPaint { | |||||
| Paint paint; | |||||
| int flag; | |||||
| char _pad[4]; | |||||
| } GpSculptPaint; | |||||
| /* Grease pencil weight paint. */ | |||||
| typedef struct GpWeightPaint { | |||||
| Paint paint; | |||||
| int flag; | |||||
| char _pad[4]; | |||||
| } GpWeightPaint; | |||||
| /* ------------------------------------------- */ | /* ------------------------------------------- */ | ||||
| /* Vertex Paint */ | /* Vertex Paint */ | ||||
| /* Vertex Paint */ | /* Vertex Paint */ | ||||
| typedef struct VPaint { | typedef struct VPaint { | ||||
| Paint paint; | Paint paint; | ||||
| char flag; | char flag; | ||||
| char _pad[3]; | char _pad[3]; | ||||
| /** For mirrored painting. */ | /** For mirrored painting. */ | ||||
| int radial_symm[3]; | int radial_symm[3]; | ||||
| } VPaint; | } VPaint; | ||||
| /* VPaint.flag */ | /* VPaint.flag */ | ||||
| enum { | enum { | ||||
| /* weight paint only */ | /* weight paint only */ | ||||
| VP_FLAG_VGROUP_RESTRICT = (1 << 7), | VP_FLAG_VGROUP_RESTRICT = (1 << 7), | ||||
| }; | }; | ||||
| /* ------------------------------------------- */ | /* ------------------------------------------- */ | ||||
| /* GPencil Stroke Sculpting */ | /* GPencil Stroke Sculpting */ | ||||
| /* GP_Sculpt_Settings.brushtype */ | |||||
| typedef enum eGP_Sculpt_Types { | |||||
| GP_SCULPT_TYPE_SMOOTH = 0, | |||||
| GP_SCULPT_TYPE_THICKNESS = 1, | |||||
| GP_SCULPT_TYPE_STRENGTH = 2, | |||||
| GP_SCULPT_TYPE_GRAB = 3, | |||||
| GP_SCULPT_TYPE_PUSH = 4, | |||||
| GP_SCULPT_TYPE_TWIST = 5, | |||||
| GP_SCULPT_TYPE_PINCH = 6, | |||||
| GP_SCULPT_TYPE_RANDOMIZE = 7, | |||||
| GP_SCULPT_TYPE_CLONE = 8, | |||||
| GP_SCULPT_TYPE_SUBDIVIDE = 9, | |||||
| GP_SCULPT_TYPE_SIMPLIFY = 10, | |||||
| /* add any sculpt brush above this value */ | |||||
| GP_SCULPT_TYPE_WEIGHT = 11, | |||||
| /* add any weight paint brush below this value. Do no mix brushes */ | |||||
| /* !!! Update GP_Sculpt_Data brush[###]; below !!! */ | |||||
| GP_SCULPT_TYPE_MAX, | |||||
| } eGP_Sculpt_Types; | |||||
| /* GP_Sculpt_Settings.lock_axis */ | /* GP_Sculpt_Settings.lock_axis */ | ||||
| typedef enum eGP_Lockaxis_Types { | typedef enum eGP_Lockaxis_Types { | ||||
| GP_LOCKAXIS_VIEW = 0, | GP_LOCKAXIS_VIEW = 0, | ||||
| GP_LOCKAXIS_X = 1, | GP_LOCKAXIS_X = 1, | ||||
| GP_LOCKAXIS_Y = 2, | GP_LOCKAXIS_Y = 2, | ||||
| GP_LOCKAXIS_Z = 3, | GP_LOCKAXIS_Z = 3, | ||||
| GP_LOCKAXIS_CURSOR = 4, | GP_LOCKAXIS_CURSOR = 4, | ||||
| } eGP_Lockaxis_Types; | } eGP_Lockaxis_Types; | ||||
| /* Settings for a GPencil Stroke Sculpting Brush */ | |||||
| typedef struct GP_Sculpt_Data { | |||||
| /** Radius of brush. */ | |||||
| short size; | |||||
| /** EGP_Sculpt_Flag. */ | |||||
| short flag; | |||||
| /** Strength of effect. */ | |||||
| float strength; | |||||
| /** Cursor color for add. */ | |||||
| float curcolor_add[3]; | |||||
| /** Cursor color for sub. */ | |||||
| float curcolor_sub[3]; | |||||
| /** Target weight. */ | |||||
| float weight; | |||||
| char _pad[4]; | |||||
| } GP_Sculpt_Data; | |||||
| /* Settings for a GPencil Speed Guide */ | /* Settings for a GPencil Speed Guide */ | ||||
| typedef struct GP_Sculpt_Guide { | typedef struct GP_Sculpt_Guide { | ||||
| char use_guide; | char use_guide; | ||||
| char use_snapping; | char use_snapping; | ||||
| char reference_point; | char reference_point; | ||||
| char type; | char type; | ||||
| char _pad2[4]; | char _pad2[4]; | ||||
| float angle; | float angle; | ||||
| float angle_snap; | float angle_snap; | ||||
| float spacing; | float spacing; | ||||
| float location[3]; | float location[3]; | ||||
| struct Object *reference_object; | struct Object *reference_object; | ||||
| } GP_Sculpt_Guide; | } GP_Sculpt_Guide; | ||||
| /* GP_Sculpt_Data.flag */ | |||||
| typedef enum eGP_Sculpt_Flag { | |||||
| /* invert the effect of the brush */ | |||||
| GP_SCULPT_FLAG_INVERT = (1 << 0), | |||||
| /* adjust strength using pen pressure */ | |||||
| GP_SCULPT_FLAG_USE_PRESSURE = (1 << 1), | |||||
| /* strength of brush falls off with distance from cursor */ | |||||
| GP_SCULPT_FLAG_USE_FALLOFF = (1 << 2), | |||||
| /* smooth brush affects pressure values as well */ | |||||
| GP_SCULPT_FLAG_SMOOTH_PRESSURE = (1 << 3), | |||||
| /* enable screen cursor */ | |||||
| GP_SCULPT_FLAG_ENABLE_CURSOR = (1 << 4), | |||||
| /* temporary invert action */ | |||||
| GP_SCULPT_FLAG_TMP_INVERT = (1 << 5), | |||||
| /* adjust radius using pen pressure */ | |||||
| GP_SCULPT_FLAG_PRESSURE_RADIUS = (1 << 6), | |||||
| } eGP_Sculpt_Flag; | |||||
| /* GPencil Stroke Sculpting Settings */ | /* GPencil Stroke Sculpting Settings */ | ||||
| typedef struct GP_Sculpt_Settings { | typedef struct GP_Sculpt_Settings { | ||||
| /** GP_SCULPT_TYPE_MAX. */ | |||||
| GP_Sculpt_Data brush[12]; | |||||
| /** Runtime. */ | /** Runtime. */ | ||||
| void *paintcursor; | void *paintcursor; | ||||
| /** #eGP_Sculpt_Types (sculpt). */ | |||||
| int brushtype; | |||||
| /** #eGP_Sculpt_SettingsFlag. */ | /** #eGP_Sculpt_SettingsFlag. */ | ||||
| int flag; | int flag; | ||||
| /** #eGP_Lockaxis_Types lock drawing to one axis. */ | /** #eGP_Lockaxis_Types lock drawing to one axis. */ | ||||
| int lock_axis; | int lock_axis; | ||||
| /** Threshold for intersections */ | /** Threshold for intersections */ | ||||
| float isect_threshold; | float isect_threshold; | ||||
| char _pad_[4]; | |||||
| /* weight paint is a submode of sculpt but use its own index. All weight paint | |||||
| * brushes must be defined at the end of the brush array. | |||||
| */ | |||||
| /** #eGP_Sculpt_Types (weight paint). */ | |||||
| int weighttype; | |||||
| char _pad[4]; | |||||
| /** Multiframe edit falloff effect by frame. */ | /** Multiframe edit falloff effect by frame. */ | ||||
| struct CurveMapping *cur_falloff; | struct CurveMapping *cur_falloff; | ||||
| /** Curve used for primitive tools. */ | /** Curve used for primitive tools. */ | ||||
| struct CurveMapping *cur_primitive; | struct CurveMapping *cur_primitive; | ||||
| /** Guides used for paint tools */ | /** Guides used for paint tools */ | ||||
| struct GP_Sculpt_Guide guide; | struct GP_Sculpt_Guide guide; | ||||
| } GP_Sculpt_Settings; | } GP_Sculpt_Settings; | ||||
| /* GP_Sculpt_Settings.flag */ | /* GP_Sculpt_Settings.flag */ | ||||
| typedef enum eGP_Sculpt_SettingsFlag { | typedef enum eGP_Sculpt_SettingsFlag { | ||||
| /* only affect selected points */ | |||||
| GP_SCULPT_SETT_FLAG_DEPRECATED = (1 << 0), | |||||
| /* apply brush to position */ | |||||
| GP_SCULPT_SETT_FLAG_APPLY_POSITION = (1 << 1), | |||||
| /* apply brush to strength */ | |||||
| GP_SCULPT_SETT_FLAG_APPLY_STRENGTH = (1 << 2), | |||||
| /* apply brush to thickness */ | |||||
| GP_SCULPT_SETT_FLAG_APPLY_THICKNESS = (1 << 3), | |||||
| /* apply brush to thickness */ | |||||
| GP_SCULPT_SETT_FLAG_WEIGHT_MODE = (1 << 4), | |||||
| /* enable falloff for multiframe editing */ | /* enable falloff for multiframe editing */ | ||||
| GP_SCULPT_SETT_FLAG_FRAME_FALLOFF = (1 << 5), | GP_SCULPT_SETT_FLAG_FRAME_FALLOFF = (1 << 0), | ||||
| /* apply brush to uv data */ | |||||
| GP_SCULPT_SETT_FLAG_APPLY_UV = (1 << 6), | |||||
| /* apply primitive curve */ | /* apply primitive curve */ | ||||
| GP_SCULPT_SETT_FLAG_PRIMITIVE_CURVE = (1 << 7), | GP_SCULPT_SETT_FLAG_PRIMITIVE_CURVE = (1 << 1), | ||||
| /* Scale thickness. */ | |||||
| GP_SCULPT_SETT_FLAG_SCALE_THICKNESS = (1 << 3), | |||||
| } eGP_Sculpt_SettingsFlag; | } eGP_Sculpt_SettingsFlag; | ||||
| /* GP_Sculpt_Settings.gpencil_selectmode_sculpt */ | /* GP_Sculpt_Settings.gpencil_selectmode_sculpt */ | ||||
| typedef enum eGP_Sculpt_SelectMaskFlag { | typedef enum eGP_Sculpt_SelectMaskFlag { | ||||
| /* only affect selected points */ | /* only affect selected points */ | ||||
| GP_SCULPT_MASK_SELECTMODE_POINT = (1 << 0), | GP_SCULPT_MASK_SELECTMODE_POINT = (1 << 0), | ||||
| /* only affect selected strokes */ | /* only affect selected strokes */ | ||||
| GP_SCULPT_MASK_SELECTMODE_STROKE = (1 << 1), | GP_SCULPT_MASK_SELECTMODE_STROKE = (1 << 1), | ||||
| /* only affect selected segmenst */ | /* only affect selected segmenst */ | ||||
| GP_SCULPT_MASK_SELECTMODE_SEGMENT = (1 << 2), | GP_SCULPT_MASK_SELECTMODE_SEGMENT = (1 << 2), | ||||
| } eGP_Sculpt_SelectMaskFlag; | } eGP_Sculpt_SelectMaskFlag; | ||||
| /* GP_Sculpt_Settings.gpencil_selectmode_vertex */ | |||||
| typedef enum eGP_vertex_SelectMaskFlag { | |||||
| /* only affect selected points */ | |||||
| GP_VERTEX_MASK_SELECTMODE_POINT = (1 << 0), | |||||
| /* only affect selected strokes */ | |||||
| GP_VERTEX_MASK_SELECTMODE_STROKE = (1 << 1), | |||||
| /* only affect selected segmenst */ | |||||
| GP_VERTEX_MASK_SELECTMODE_SEGMENT = (1 << 2), | |||||
| } eGP_Vertex_SelectMaskFlag; | |||||
| /* Settings for GP Interpolation Operators */ | /* Settings for GP Interpolation Operators */ | ||||
| typedef struct GP_Interpolate_Settings { | typedef struct GP_Interpolate_Settings { | ||||
| /** #eGP_Interpolate_SettingsFlag. */ | /** #eGP_Interpolate_SettingsFlag. */ | ||||
| short flag; | short flag; | ||||
| /** #eGP_Interpolate_Type - Interpolation Mode. */ | /** #eGP_Interpolate_Type - Interpolation Mode. */ | ||||
| char type; | char type; | ||||
| /** #eBezTriple_Easing - Easing mode (if easing equation used). */ | /** #eBezTriple_Easing - Easing mode (if easing equation used). */ | ||||
| ▲ Show 20 Lines • Show All 216 Lines • ▼ Show 20 Lines | typedef struct ToolSettings { | ||||
| VPaint *vpaint; | VPaint *vpaint; | ||||
| /** Weight paint. */ | /** Weight paint. */ | ||||
| VPaint *wpaint; | VPaint *wpaint; | ||||
| Sculpt *sculpt; | Sculpt *sculpt; | ||||
| /** Uv smooth. */ | /** Uv smooth. */ | ||||
| UvSculpt *uvsculpt; | UvSculpt *uvsculpt; | ||||
| /** Gpencil paint. */ | /** Gpencil paint. */ | ||||
| GpPaint *gp_paint; | GpPaint *gp_paint; | ||||
| /** Gpencil vertex paint. */ | |||||
| GpVertexPaint *gp_vertexpaint; | |||||
| /** Gpencil sculpt paint. */ | |||||
| GpSculptPaint *gp_sculptpaint; | |||||
| /** Gpencil weight paint. */ | |||||
| GpWeightPaint *gp_weightpaint; | |||||
| /* Vertex group weight - used only for editmode, not weight | /* Vertex group weight - used only for editmode, not weight | ||||
| * paint */ | * paint */ | ||||
| float vgroup_weight; | float vgroup_weight; | ||||
| /** Remove doubles limit. */ | /** Remove doubles limit. */ | ||||
| float doublimit; | float doublimit; | ||||
| char automerge; | char automerge; | ||||
| ▲ Show 20 Lines • Show All 97 Lines • ▼ Show 20 Lines | typedef struct ToolSettings { | ||||
| /** Auto normalizing mode in wpaint. */ | /** Auto normalizing mode in wpaint. */ | ||||
| char auto_normalize; | char auto_normalize; | ||||
| /** Paint multiple bones in wpaint. */ | /** Paint multiple bones in wpaint. */ | ||||
| char multipaint; | char multipaint; | ||||
| char weightuser; | char weightuser; | ||||
| /** Subset selection filter in wpaint. */ | /** Subset selection filter in wpaint. */ | ||||
| char vgroupsubset; | char vgroupsubset; | ||||
| /** Stroke selection mode for Vertex Paint. */ | |||||
| char gpencil_selectmode_vertex; | |||||
| /* UV painting */ | /* UV painting */ | ||||
| char _pad2[3]; | char _pad2[2]; | ||||
| char uv_sculpt_settings; | char uv_sculpt_settings; | ||||
| char uv_relax_method; | char uv_relax_method; | ||||
| /* XXX: these sculpt_paint_* fields are deprecated, use the | /* XXX: these sculpt_paint_* fields are deprecated, use the | ||||
| * unified_paint_settings field instead! */ | * unified_paint_settings field instead! */ | ||||
| short sculpt_paint_settings DNA_DEPRECATED; | short sculpt_paint_settings DNA_DEPRECATED; | ||||
| char workspace_tool_type; | char workspace_tool_type; | ||||
| ▲ Show 20 Lines • Show All 779 Lines • ▼ Show 20 Lines | typedef enum eGPencil_SimplifyFlags { | ||||
| /* Simplify */ | /* Simplify */ | ||||
| SIMPLIFY_GPENCIL_ENABLE = (1 << 0), | SIMPLIFY_GPENCIL_ENABLE = (1 << 0), | ||||
| /* Simplify on play */ | /* Simplify on play */ | ||||
| SIMPLIFY_GPENCIL_ON_PLAY = (1 << 1), | SIMPLIFY_GPENCIL_ON_PLAY = (1 << 1), | ||||
| /* Simplify fill on viewport */ | /* Simplify fill on viewport */ | ||||
| SIMPLIFY_GPENCIL_FILL = (1 << 2), | SIMPLIFY_GPENCIL_FILL = (1 << 2), | ||||
| /* Simplify modifier on viewport */ | /* Simplify modifier on viewport */ | ||||
| SIMPLIFY_GPENCIL_MODIFIER = (1 << 3), | SIMPLIFY_GPENCIL_MODIFIER = (1 << 3), | ||||
| /* Remove fill external line */ | |||||
| SIMPLIFY_GPENCIL_REMOVE_FILL_LINE = (1 << 4), | |||||
| /* Simplify Shader FX */ | /* Simplify Shader FX */ | ||||
| SIMPLIFY_GPENCIL_FX = (1 << 5), | SIMPLIFY_GPENCIL_FX = (1 << 5), | ||||
| /* Simplify layer blending */ | |||||
| SIMPLIFY_GPENCIL_BLEND = (1 << 6), | |||||
| /* Simplify layer tint */ | /* Simplify layer tint */ | ||||
| SIMPLIFY_GPENCIL_TINT = (1 << 7), | SIMPLIFY_GPENCIL_TINT = (1 << 7), | ||||
| /* Simplify Antialiasing */ | |||||
| SIMPLIFY_GPENCIL_AA = (1 << 8), | |||||
| } eGPencil_SimplifyFlags; | } eGPencil_SimplifyFlags; | ||||
| /* ToolSettings.gpencil_*_align - Stroke Placement mode flags */ | /* ToolSettings.gpencil_*_align - Stroke Placement mode flags */ | ||||
| typedef enum eGPencil_Placement_Flags { | typedef enum eGPencil_Placement_Flags { | ||||
| /* New strokes are added in viewport/data space (i.e. not screen space) */ | /* New strokes are added in viewport/data space (i.e. not screen space) */ | ||||
| GP_PROJECT_VIEWSPACE = (1 << 0), | GP_PROJECT_VIEWSPACE = (1 << 0), | ||||
| /* Viewport space, but relative to render canvas (Sequencer Preview Only) */ | /* Viewport space, but relative to render canvas (Sequencer Preview Only) */ | ||||
| ▲ Show 20 Lines • Show All 126 Lines • Show Last 20 Lines | |||||