Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_scene_types.h
| Show First 20 Lines • Show All 1,330 Lines • ▼ Show 20 Lines | typedef struct MeshStatVis { | ||||
| /* sharp */ | /* sharp */ | ||||
| float sharp_min, sharp_max; | float sharp_min, sharp_max; | ||||
| } MeshStatVis; | } MeshStatVis; | ||||
| typedef struct SequencerToolSettings { | typedef struct SequencerToolSettings { | ||||
| /* eSeqImageFitMethod */ | /* eSeqImageFitMethod */ | ||||
| int fit_method; | int fit_method; | ||||
| /*eSeqSnapFlag */ | |||||
| int snap_flag; | |||||
| /** When there are many snap points, 0-1 range corresponds to resolution from boundbox to all | |||||
| * possible snap points. */ | |||||
| int snap_distance; | |||||
| } SequencerToolSettings; | } SequencerToolSettings; | ||||
| typedef enum eSeqImageFitMethod { | typedef enum eSeqImageFitMethod { | ||||
| SEQ_SCALE_TO_FIT, | SEQ_SCALE_TO_FIT, | ||||
| SEQ_SCALE_TO_FILL, | SEQ_SCALE_TO_FILL, | ||||
| SEQ_STRETCH_TO_FILL, | SEQ_STRETCH_TO_FILL, | ||||
| SEQ_USE_ORIGINAL_SIZE, | SEQ_USE_ORIGINAL_SIZE, | ||||
| } eSeqImageFitMethod; | } eSeqImageFitMethod; | ||||
| typedef enum eSeqSnapFlag { | |||||
| SEQ_USE_SNAPPING = (1 << 0), | |||||
| SEQ_SNAP_TO_PLAYHEAD = (1 << 1), | |||||
| SEQ_SNAP_TO_STRIP_HOLD = (1 << 2), | |||||
| SEQ_SNAP_IGNORE_MUTED = (1 << 3), | |||||
| SEQ_SNAP_IGNORE_SOUND = (1 << 4), | |||||
| } eSeqSnapFlag; | |||||
| /* *************************************************************** */ | /* *************************************************************** */ | ||||
| /* Tool Settings */ | /* Tool Settings */ | ||||
| /** #CurvePaintSettings.surface_plane */ | /** #CurvePaintSettings.surface_plane */ | ||||
| enum { | enum { | ||||
| AUTO_MERGE = 1 << 0, | AUTO_MERGE = 1 << 0, | ||||
| AUTO_MERGE_AND_SPLIT = 1 << 1, | AUTO_MERGE_AND_SPLIT = 1 << 1, | ||||
| }; | }; | ||||
| ▲ Show 20 Lines • Show All 652 Lines • ▼ Show 20 Lines | |||||
| #define PSFRA ((PRVRANGEON) ? (scene->r.psfra) : (scene->r.sfra)) | #define PSFRA ((PRVRANGEON) ? (scene->r.psfra) : (scene->r.sfra)) | ||||
| #define PEFRA ((PRVRANGEON) ? (scene->r.pefra) : (scene->r.efra)) | #define PEFRA ((PRVRANGEON) ? (scene->r.pefra) : (scene->r.efra)) | ||||
| #define FRA2TIME(a) ((((double)scene->r.frs_sec_base) * (double)(a)) / (double)scene->r.frs_sec) | #define FRA2TIME(a) ((((double)scene->r.frs_sec_base) * (double)(a)) / (double)scene->r.frs_sec) | ||||
| #define TIME2FRA(a) ((((double)scene->r.frs_sec) * (double)(a)) / (double)scene->r.frs_sec_base) | #define TIME2FRA(a) ((((double)scene->r.frs_sec) * (double)(a)) / (double)scene->r.frs_sec_base) | ||||
| #define FPS (((double)scene->r.frs_sec) / (double)scene->r.frs_sec_base) | #define FPS (((double)scene->r.frs_sec) / (double)scene->r.frs_sec_base) | ||||
| /* Base.flag is in DNA_object_types.h */ | /* Base.flag is in DNA_object_types.h */ | ||||
| /** #ToolSettings.transform_flag */ | /** #ToolSettings.snap_flag */ | ||||
| enum { | enum { | ||||
| SCE_XFORM_AXIS_ALIGN = (1 << 0), | SCE_XFORM_AXIS_ALIGN = (1 << 0), | ||||
| SCE_XFORM_DATA_ORIGIN = (1 << 1), | SCE_XFORM_DATA_ORIGIN = (1 << 1), | ||||
| SCE_XFORM_SKIP_CHILDREN = (1 << 2), | SCE_XFORM_SKIP_CHILDREN = (1 << 2), | ||||
| }; | }; | ||||
| /** #ToolSettings.object_flag */ | /** #ToolSettings.object_flag */ | ||||
| enum { | enum { | ||||
| ▲ Show 20 Lines • Show All 424 Lines • Show Last 20 Lines | |||||