Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_scene_types.h
| Show First 20 Lines • Show All 978 Lines • ▼ Show 20 Lines | |||||
| #define STEREO_LEFT_NAME "left" | #define STEREO_LEFT_NAME "left" | ||||
| #define STEREO_RIGHT_SUFFIX "_R" | #define STEREO_RIGHT_SUFFIX "_R" | ||||
| #define STEREO_LEFT_SUFFIX "_L" | #define STEREO_LEFT_SUFFIX "_L" | ||||
| typedef enum eStereoViews { | typedef enum eStereoViews { | ||||
| STEREO_LEFT_ID = 0, | STEREO_LEFT_ID = 0, | ||||
| STEREO_RIGHT_ID = 1, | STEREO_RIGHT_ID = 1, | ||||
| STEREO_3D_ID = 2, | STEREO_3D_ID = 2, | ||||
| STEREO_MONO_ID = 3, | STEREO_MONO_ID = 3, | ||||
| } eStereoViews; | } eStereoViews; | ||||
| /* *************************************************************** */ | /* *************************************************************** */ | ||||
| /* Markers */ | /* Markers */ | ||||
| typedef struct TimeMarker { | typedef struct TimeMarker { | ||||
| struct TimeMarker *next, *prev; | struct TimeMarker *next, *prev; | ||||
| int frame; | int frame; | ||||
mont29: Why the reordering here? | |||||
| char name[64]; | char name[64]; | ||||
| unsigned int flag; | unsigned int flag; | ||||
Not Done Inline ActionsThis is very weak? Means every type you add a new sculpt brush you shift all you weight ones? Also, why put them in same enum, since they are used in two different modes... and even assigned to two different variables! mont29: This is very weak? Means every type you add a new sculpt brush you shift all you weight ones? | |||||
Not Done Inline ActionsI think there are some misunderstanding here:
antoniov: I think there are some misunderstanding here:
1) The user cannot add new brushes or delete… | |||||
| struct Object *camera; | struct Object *camera; | ||||
| } TimeMarker; | } TimeMarker; | ||||
| /* *************************************************************** */ | /* *************************************************************** */ | ||||
| /* Paint Mode/Tool Data */ | /* Paint Mode/Tool Data */ | ||||
| #define PAINT_MAX_INPUT_SAMPLES 64 | #define PAINT_MAX_INPUT_SAMPLES 64 | ||||
| ▲ Show 20 Lines • Show All 133 Lines • ▼ Show 20 Lines | |||||
| /* ------------------------------------------- */ | /* ------------------------------------------- */ | ||||
| /* GPencil Stroke Sculpting */ | /* GPencil Stroke Sculpting */ | ||||
| /* Brush types */ | /* Brush types */ | ||||
| typedef enum eGP_EditBrush_Types { | typedef enum eGP_EditBrush_Types { | ||||
| GP_EDITBRUSH_TYPE_SMOOTH = 0, | GP_EDITBRUSH_TYPE_SMOOTH = 0, | ||||
| GP_EDITBRUSH_TYPE_THICKNESS = 1, | GP_EDITBRUSH_TYPE_THICKNESS = 1, | ||||
| GP_EDITBRUSH_TYPE_GRAB = 2, | GP_EDITBRUSH_TYPE_STRENGTH = 2, | ||||
| GP_EDITBRUSH_TYPE_PUSH = 3, | GP_EDITBRUSH_TYPE_GRAB = 3, | ||||
| GP_EDITBRUSH_TYPE_TWIST = 4, | GP_EDITBRUSH_TYPE_PUSH = 4, | ||||
| GP_EDITBRUSH_TYPE_PINCH = 5, | GP_EDITBRUSH_TYPE_TWIST = 5, | ||||
| GP_EDITBRUSH_TYPE_RANDOMIZE = 6, | GP_EDITBRUSH_TYPE_PINCH = 6, | ||||
| GP_EDITBRUSH_TYPE_SUBDIVIDE = 7, | GP_EDITBRUSH_TYPE_RANDOMIZE = 7, | ||||
| GP_EDITBRUSH_TYPE_SIMPLIFY = 8, | GP_EDITBRUSH_TYPE_CLONE = 8, | ||||
| GP_EDITBRUSH_TYPE_CLONE = 9, | GP_EDITBRUSH_TYPE_SUBDIVIDE = 9, | ||||
| GP_EDITBRUSH_TYPE_STRENGTH = 10, | GP_EDITBRUSH_TYPE_SIMPLIFY = 10, | ||||
| /* add any sculpt brush above this value */ | |||||
| GP_EDITBRUSH_TYPE_WEIGHT = 11, | |||||
| /* add any weight paint brush below this value. Do no mix brushes */ | |||||
| /* !!! Update GP_EditBrush_Data brush[###]; below !!! */ | /* !!! Update GP_EditBrush_Data brush[###]; below !!! */ | ||||
| TOT_GP_EDITBRUSH_TYPES | TOT_GP_EDITBRUSH_TYPES | ||||
| } eGP_EditBrush_Types; | } eGP_EditBrush_Types; | ||||
| /* Lock axis options */ | /* Lock axis options */ | ||||
| typedef enum eGP_Lockaxis_Types { | typedef enum eGP_Lockaxis_Types { | ||||
| GP_LOCKAXIS_NONE = 0, | GP_LOCKAXIS_NONE = 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 | ||||
| } eGP_Lockaxis_Types; | } eGP_Lockaxis_Types; | ||||
| /* Settings for a GPencil Stroke Sculpting Brush */ | /* Settings for a GPencil Stroke Sculpting Brush */ | ||||
| typedef struct GP_EditBrush_Data { | typedef struct GP_EditBrush_Data { | ||||
| short size; /* radius of brush */ | short size; /* radius of brush */ | ||||
| short flag; /* eGP_EditBrush_Flag */ | short flag; /* eGP_EditBrush_Flag */ | ||||
| float strength; /* strength of effect */ | float strength; /* strength of effect */ | ||||
| float curcolor_add[3]; /* cursor color for add */ | |||||
| float curcolor_sub[3]; /* cursor color for sub */ | |||||
| } GP_EditBrush_Data; | } GP_EditBrush_Data; | ||||
| /* GP_EditBrush_Data.flag */ | /* GP_EditBrush_Data.flag */ | ||||
| typedef enum eGP_EditBrush_Flag { | typedef enum eGP_EditBrush_Flag { | ||||
| /* invert the effect of the brush */ | /* invert the effect of the brush */ | ||||
| GP_EDITBRUSH_FLAG_INVERT = (1 << 0), | GP_EDITBRUSH_FLAG_INVERT = (1 << 0), | ||||
| /* adjust strength using pen pressure */ | /* adjust strength using pen pressure */ | ||||
| GP_EDITBRUSH_FLAG_USE_PRESSURE = (1 << 1), | GP_EDITBRUSH_FLAG_USE_PRESSURE = (1 << 1), | ||||
| /* strength of brush falls off with distance from cursor */ | /* strength of brush falls off with distance from cursor */ | ||||
| GP_EDITBRUSH_FLAG_USE_FALLOFF = (1 << 2), | GP_EDITBRUSH_FLAG_USE_FALLOFF = (1 << 2), | ||||
| /* smooth brush affects pressure values as well */ | /* smooth brush affects pressure values as well */ | ||||
| GP_EDITBRUSH_FLAG_SMOOTH_PRESSURE = (1 << 3) | GP_EDITBRUSH_FLAG_SMOOTH_PRESSURE = (1 << 3), | ||||
| /* enable screen cursor */ | |||||
| GP_EDITBRUSH_FLAG_ENABLE_CURSOR = (1 << 4), | |||||
| /* temporary invert action */ | |||||
| GP_EDITBRUSH_FLAG_TMP_INVERT = (1 << 5), | |||||
| } eGP_EditBrush_Flag; | } eGP_EditBrush_Flag; | ||||
| /* GPencil Stroke Sculpting Settings */ | /* GPencil Stroke Sculpting Settings */ | ||||
| typedef struct GP_BrushEdit_Settings { | typedef struct GP_BrushEdit_Settings { | ||||
| GP_EditBrush_Data brush[11]; /* TOT_GP_EDITBRUSH_TYPES */ | GP_EditBrush_Data brush[12]; /* TOT_GP_EDITBRUSH_TYPES */ | ||||
| void *paintcursor; /* runtime */ | void *paintcursor; /* runtime */ | ||||
| int brushtype; /* eGP_EditBrush_Types */ | int brushtype; /* eGP_EditBrush_Types (sculpt) */ | ||||
| int flag; /* eGP_BrushEdit_SettingsFlag */ | int flag; /* eGP_BrushEdit_SettingsFlag */ | ||||
| int lock_axis; /* lock drawing to one axis */ | int lock_axis; /* lock drawing to one axis */ | ||||
| float alpha; /* alpha factor for selection color */ | float alpha; /* alpha factor for selection color */ | ||||
| /* 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. | |||||
| */ | |||||
| int weighttype; /* eGP_EditBrush_Types (weight paint) */ | |||||
| char pad[4]; | |||||
| } GP_BrushEdit_Settings; | } GP_BrushEdit_Settings; | ||||
| /* GP_BrushEdit_Settings.flag */ | /* GP_BrushEdit_Settings.flag */ | ||||
| typedef enum eGP_BrushEdit_SettingsFlag { | typedef enum eGP_BrushEdit_SettingsFlag { | ||||
| /* only affect selected points */ | /* only affect selected points */ | ||||
| GP_BRUSHEDIT_FLAG_SELECT_MASK = (1 << 0), | GP_BRUSHEDIT_FLAG_SELECT_MASK = (1 << 0), | ||||
| /* apply brush to position */ | /* apply brush to position */ | ||||
| GP_BRUSHEDIT_FLAG_APPLY_POSITION = (1 << 1), | GP_BRUSHEDIT_FLAG_APPLY_POSITION = (1 << 1), | ||||
| /* apply brush to strength */ | /* apply brush to strength */ | ||||
| GP_BRUSHEDIT_FLAG_APPLY_STRENGTH = (1 << 2), | GP_BRUSHEDIT_FLAG_APPLY_STRENGTH = (1 << 2), | ||||
| /* apply brush to thickness */ | /* apply brush to thickness */ | ||||
| GP_BRUSHEDIT_FLAG_APPLY_THICKNESS = (1 << 3), | GP_BRUSHEDIT_FLAG_APPLY_THICKNESS = (1 << 3), | ||||
| /* apply brush to thickness */ | |||||
| GP_BRUSHEDIT_FLAG_WEIGHT_MODE = (1 << 4), | |||||
| } eGP_BrushEdit_SettingsFlag; | } eGP_BrushEdit_SettingsFlag; | ||||
| /* Settings for GP Interpolation Operators */ | /* Settings for GP Interpolation Operators */ | ||||
| typedef struct GP_Interpolate_Settings { | typedef struct GP_Interpolate_Settings { | ||||
| short flag; /* eGP_Interpolate_SettingsFlag */ | short flag; /* eGP_Interpolate_SettingsFlag */ | ||||
| char type; /* eGP_Interpolate_Type - Interpolation Mode */ | char type; /* eGP_Interpolate_Type - Interpolation Mode */ | ||||
| Show All 28 Lines | typedef enum eGP_Interpolate_Type { | ||||
| GP_IPO_CUBIC = 6, | GP_IPO_CUBIC = 6, | ||||
| GP_IPO_ELASTIC = 7, | GP_IPO_ELASTIC = 7, | ||||
| GP_IPO_EXPO = 8, | GP_IPO_EXPO = 8, | ||||
| GP_IPO_QUAD = 9, | GP_IPO_QUAD = 9, | ||||
| GP_IPO_QUART = 10, | GP_IPO_QUART = 10, | ||||
| GP_IPO_QUINT = 11, | GP_IPO_QUINT = 11, | ||||
| GP_IPO_SINE = 12, | GP_IPO_SINE = 12, | ||||
| } eGP_Interpolate_Type; | } eGP_Interpolate_Type; | ||||
Not Done Inline ActionsUse DNA_DEPRECATED. campbellbarton: Use `DNA_DEPRECATED`. | |||||
| /* *************************************************************** */ | /* *************************************************************** */ | ||||
| /* Unified Paint Settings | /* Unified Paint Settings | ||||
| */ | */ | ||||
| /* These settings can override the equivalent fields in the active | /* These settings can override the equivalent fields in the active | ||||
| * Brush for any paint mode; the flag field controls whether these | * Brush for any paint mode; the flag field controls whether these | ||||
| * values are used */ | * values are used */ | ||||
| typedef struct UnifiedPaintSettings { | typedef struct UnifiedPaintSettings { | ||||
| ▲ Show 20 Lines • Show All 187 Lines • ▼ Show 20 Lines | typedef struct ToolSettings { | ||||
| /* Grease Pencil */ | /* Grease Pencil */ | ||||
| char gpencil_flags; /* flags/options for how the tool works */ | char gpencil_flags; /* flags/options for how the tool works */ | ||||
| char gpencil_src; /* for main 3D view Grease Pencil, where data comes from */ | char gpencil_src; /* for main 3D view Grease Pencil, where data comes from */ | ||||
| char gpencil_v3d_align; /* stroke placement settings: 3D View */ | char gpencil_v3d_align; /* stroke placement settings: 3D View */ | ||||
| char gpencil_v2d_align; /* : General 2D Editor */ | char gpencil_v2d_align; /* : General 2D Editor */ | ||||
| char gpencil_seq_align; /* : Sequencer Preview */ | char gpencil_seq_align; /* : Sequencer Preview */ | ||||
| char gpencil_ima_align; /* : Image Editor */ | char gpencil_ima_align; /* : Image Editor */ | ||||
| short gpencil_simplify; /* simplify flags for grease pencil */ | |||||
| char pad6[6]; | |||||
| /* Grease Pencil Sculpt */ | /* Grease Pencil Sculpt */ | ||||
| struct GP_BrushEdit_Settings gp_sculpt; | struct GP_BrushEdit_Settings gp_sculpt; | ||||
| /* Grease Pencil Interpolation Tool(s) */ | /* Grease Pencil Interpolation Tool(s) */ | ||||
| struct GP_Interpolate_Settings gp_interpolate; | struct GP_Interpolate_Settings gp_interpolate; | ||||
| /* Grease Pencil Drawing Brushes (bGPDbrush) */ | /* Grease Pencil Drawing Brushes (bGPDbrush) */ | ||||
| ListBase gp_brushes; | ListBase gp_brushes; | ||||
| /* Image Paint (8 byttse aligned please!) */ | /* Image Paint (8 byttse aligned please!) */ | ||||
| struct ImagePaintSettings imapaint; | struct ImagePaintSettings imapaint; | ||||
| ▲ Show 20 Lines • Show All 193 Lines • ▼ Show 20 Lines | typedef struct Scene { | ||||
| /* Game Settings */ | /* Game Settings */ | ||||
| struct GameFraming framing DNA_DEPRECATED; // XXX deprecated since 2.5 | struct GameFraming framing DNA_DEPRECATED; // XXX deprecated since 2.5 | ||||
| struct GameData gm; | struct GameData gm; | ||||
| /* Units */ | /* Units */ | ||||
| struct UnitSettings unit; | struct UnitSettings unit; | ||||
| /* Grease Pencil */ | /* Movie Tracking */ | ||||
| struct bGPdata *gpd; | struct MovieClip *clip; /* active movie clip */ | ||||
| /* Physics simulation settings */ | /* Physics simulation settings */ | ||||
| struct PhysicsSettings physics_settings; | struct PhysicsSettings physics_settings; | ||||
| void *pad6; | void *pad6; | ||||
| uint64_t customdata_mask; /* XXX. runtime flag for drawing, actually belongs in the window, only used by BKE_object_handle_update() */ | uint64_t customdata_mask; /* XXX. runtime flag for drawing, actually belongs in the window, only used by BKE_object_handle_update() */ | ||||
| uint64_t customdata_mask_modal; /* XXX. same as above but for temp operator use (gl renders) */ | uint64_t customdata_mask_modal; /* XXX. same as above but for temp operator use (gl renders) */ | ||||
| /* Movie Tracking */ | /* Grease Pencil */ | ||||
| struct MovieClip *clip; /* active movie clip */ | struct bGPdata *gpd; | ||||
| struct Object *gp_object; /* default GP object for annotations */ | |||||
| /* Color Management */ | /* Color Management */ | ||||
| ColorManagedViewSettings view_settings; | ColorManagedViewSettings view_settings; | ||||
| ColorManagedDisplaySettings display_settings; | ColorManagedDisplaySettings display_settings; | ||||
| ColorManagedColorspaceSettings sequencer_colorspace_settings; | ColorManagedColorspaceSettings sequencer_colorspace_settings; | ||||
| /* RigidBody simulation world+settings */ | /* RigidBody simulation world+settings */ | ||||
| struct RigidBodyWorld *rigidbody_world; | struct RigidBodyWorld *rigidbody_world; | ||||
| ▲ Show 20 Lines • Show All 487 Lines • ▼ Show 20 Lines | |||||
| /* toolsettings->gpencil_flags */ | /* toolsettings->gpencil_flags */ | ||||
| typedef enum eGPencil_Flags { | typedef enum eGPencil_Flags { | ||||
| /* "Continuous Drawing" - The drawing operator enters a mode where multiple strokes can be drawn */ | /* "Continuous Drawing" - The drawing operator enters a mode where multiple strokes can be drawn */ | ||||
| GP_TOOL_FLAG_PAINTSESSIONS_ON = (1 << 0), | GP_TOOL_FLAG_PAINTSESSIONS_ON = (1 << 0), | ||||
| /* When creating new frames, the last frame gets used as the basis for the new one */ | /* When creating new frames, the last frame gets used as the basis for the new one */ | ||||
| GP_TOOL_FLAG_RETAIN_LAST = (1 << 1), | GP_TOOL_FLAG_RETAIN_LAST = (1 << 1), | ||||
| /* Add the strokes below all strokes in the layer */ | /* Add the strokes below all strokes in the layer */ | ||||
| GP_TOOL_FLAG_PAINT_ONBACK = (1 << 2) | GP_TOOL_FLAG_PAINT_ONBACK = (1 << 2), | ||||
| } eGPencil_Flags; | } eGPencil_Flags; | ||||
| /* toolsettings->gpencil_simplify */ | |||||
| typedef enum eGPencil_SimplifyFlags { | |||||
| /* Simplify */ | |||||
| GP_TOOL_FLAG_SIMPLIFY = (1 << 0), | |||||
| /* Simplify on play */ | |||||
| GP_TOOL_FLAG_SIMPLIFY_ON_PLAY = (1 << 1), | |||||
| /* Simplify fill on viewport */ | |||||
| GP_TOOL_FLAG_SIMPLIFY_VIEW_FILL = (1 << 2), | |||||
| /* Simplify modifier on viewport */ | |||||
| GP_TOOL_FLAG_SIMPLIFY_VIEW_MODIF = (1 << 3), | |||||
| /* Simplify vfx modifier on viewport */ | |||||
| GP_TOOL_FLAG_SIMPLIFY_VIEW_VFX = (1 << 4), | |||||
| /* Simplify fill on render */ | |||||
| GP_TOOL_FLAG_SIMPLIFY_RENDER_FILL = (1 << 5), | |||||
| /* Simplify modifier on render */ | |||||
| GP_TOOL_FLAG_SIMPLIFY_RENDER_MODIF = (1 << 6), | |||||
| /* Simplify vfx modifier on render */ | |||||
| GP_TOOL_FLAG_SIMPLIFY_RENDER_VFX = (1 << 7), | |||||
| /* Remove fill external line */ | |||||
| GP_TOOL_FLAG_SIMPLIFY_REMOVE_LINE = (1 << 8), | |||||
| /* Disable fast drawing */ | |||||
| GP_TOOL_FLAG_DISABLE_FAST_DRAWING = (1 << 9), | |||||
| } eGPencil_SimplifyFlags; | |||||
| /* toolsettings->gpencil_src */ | /* toolsettings->gpencil_src */ | ||||
| typedef enum eGPencil_Source_3D { | typedef enum eGPencil_Source_3D { | ||||
| GP_TOOL_SOURCE_SCENE = 0, | GP_TOOL_SOURCE_SCENE = 0, | ||||
| GP_TOOL_SOURCE_OBJECT = 1 | GP_TOOL_SOURCE_OBJECT = 1 | ||||
| } eGPencil_Source_3d; | } eGPencil_Source_3d; | ||||
| /* 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) */ | ||||
| GP_PROJECT_CANVAS = (1 << 1), | GP_PROJECT_CANVAS = (1 << 1), | ||||
| /* Project into the screen's Z values */ | /* Project into the screen's Z values */ | ||||
| GP_PROJECT_DEPTH_VIEW = (1 << 2), | GP_PROJECT_DEPTH_VIEW = (1 << 2), | ||||
| GP_PROJECT_DEPTH_STROKE = (1 << 3), | GP_PROJECT_DEPTH_STROKE = (1 << 3), | ||||
| /* "Use Endpoints" */ | /* "Use Endpoints" */ | ||||
| GP_PROJECT_DEPTH_STROKE_ENDPOINTS = (1 << 4), | GP_PROJECT_DEPTH_STROKE_ENDPOINTS = (1 << 4), | ||||
| GP_PROJECT_CURSOR = (1 << 5), | |||||
| } eGPencil_Placement_Flags; | } eGPencil_Placement_Flags; | ||||
| /* toolsettings->particle flag */ | /* toolsettings->particle flag */ | ||||
| #define PE_KEEP_LENGTHS 1 | #define PE_KEEP_LENGTHS 1 | ||||
| #define PE_LOCK_FIRST 2 | #define PE_LOCK_FIRST 2 | ||||
| #define PE_DEFLECT_EMITTER 4 | #define PE_DEFLECT_EMITTER 4 | ||||
| #define PE_INTERPOLATE_ADDED 8 | #define PE_INTERPOLATE_ADDED 8 | ||||
| #define PE_DRAW_PART 16 | #define PE_DRAW_PART 16 | ||||
| ▲ Show 20 Lines • Show All 89 Lines • Show Last 20 Lines | |||||
Why the reordering here?