diff options
author | Julian Eisel <eiseljulian@gmail.com> | 2019-09-01 14:39:30 +0300 |
---|---|---|
committer | Julian Eisel <eiseljulian@gmail.com> | 2019-09-01 14:39:30 +0300 |
commit | e859086b18e0ad148f1ec58224ca7ac5e303526d (patch) | |
tree | 293047549e57c7a2f61c9137be3e944b603c0347 /source/blender/makesdna | |
parent | 2f7718aa23822e0e4e8bc0eea5875d7281f6f26d (diff) | |
parent | ae43b1d51b4a0384c2197a6aca5cd2810c9283ff (diff) |
Merge branch 'master' into filebrowser_redesign
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_anim_types.h | 24 | ||||
-rw-r--r-- | source/blender/makesdna/DNA_brush_types.h | 3 | ||||
-rw-r--r-- | source/blender/makesdna/DNA_object_types.h | 8 | ||||
-rw-r--r-- | source/blender/makesdna/DNA_userdef_types.h | 2 | ||||
-rw-r--r-- | source/blender/makesdna/intern/dna_genfile.c | 2 |
5 files changed, 33 insertions, 6 deletions
diff --git a/source/blender/makesdna/DNA_anim_types.h b/source/blender/makesdna/DNA_anim_types.h index 1718aabc51d..be4850d6779 100644 --- a/source/blender/makesdna/DNA_anim_types.h +++ b/source/blender/makesdna/DNA_anim_types.h @@ -319,6 +319,10 @@ typedef struct DriverTarget { /** Transform channel index (for DVAR_TYPE_TRANSFORM_CHAN.)*/ short transChan; + /** Rotation channel calculation type. */ + char rotation_mode; + char _pad[7]; + /** * Flags for the validity of the target * (NOTE: these get reset every time the types change). @@ -358,10 +362,30 @@ typedef enum eDriverTarget_TransformChannels { DTAR_TRANSCHAN_SCALEY, DTAR_TRANSCHAN_SCALEZ, DTAR_TRANSCHAN_SCALE_AVG, + DTAR_TRANSCHAN_ROTW, MAX_DTAR_TRANSCHAN_TYPES, } eDriverTarget_TransformChannels; +/* Rotation channel mode for Driver Targets */ +typedef enum eDriverTarget_RotationMode { + /** Automatic euler mode. */ + DTAR_ROTMODE_AUTO = 0, + + /** Explicit euler rotation modes - must sync with BLI_math_rotation.h defines. */ + DTAR_ROTMODE_EULER_XYZ = 1, + DTAR_ROTMODE_EULER_XZY, + DTAR_ROTMODE_EULER_YXZ, + DTAR_ROTMODE_EULER_YZX, + DTAR_ROTMODE_EULER_ZXY, + DTAR_ROTMODE_EULER_ZYX, + + DTAR_ROTMODE_QUATERNION, + + DTAR_ROTMODE_EULER_MIN = DTAR_ROTMODE_EULER_XYZ, + DTAR_ROTMODE_EULER_MAX = DTAR_ROTMODE_EULER_ZYX, +} eDriverTarget_RotationMode; + /* --- */ /* maximum number of driver targets per variable */ diff --git a/source/blender/makesdna/DNA_brush_types.h b/source/blender/makesdna/DNA_brush_types.h index 78aa68556cb..bae9c8f40ea 100644 --- a/source/blender/makesdna/DNA_brush_types.h +++ b/source/blender/makesdna/DNA_brush_types.h @@ -295,6 +295,8 @@ typedef struct Brush { float crease_pinch_factor; + float normal_radius_factor; + float plane_trim; /** Affectable height of brush (layer height for layer tool, i.e.). */ float height; @@ -302,7 +304,6 @@ typedef struct Brush { float texture_sample_bias; int curve_preset; - char _pad1[4]; /* overlay */ int texture_overlay_alpha; diff --git a/source/blender/makesdna/DNA_object_types.h b/source/blender/makesdna/DNA_object_types.h index e006014b71f..613871b1fee 100644 --- a/source/blender/makesdna/DNA_object_types.h +++ b/source/blender/makesdna/DNA_object_types.h @@ -162,12 +162,14 @@ typedef struct Object_Runtime { struct Mesh *mesh_eval; /** * Mesh structure created during object evaluation. - * It has deforemation only modifiers applied on it. + * It has deformation only modifiers applied on it. */ struct Mesh *mesh_deform_eval; - /* This is a mesh representation of corresponding object. - * It created when Python calls `object.to_mesh()`. */ + /** + * This is a mesh representation of corresponding object. + * It created when Python calls `object.to_mesh()`. + */ struct Mesh *object_as_temp_mesh; /** Runtime evaluated curve-specific data, not stored in the file. */ diff --git a/source/blender/makesdna/DNA_userdef_types.h b/source/blender/makesdna/DNA_userdef_types.h index 3cb96ce8bf8..8eabbc0df0d 100644 --- a/source/blender/makesdna/DNA_userdef_types.h +++ b/source/blender/makesdna/DNA_userdef_types.h @@ -717,7 +717,7 @@ typedef struct UserDef { /** Overall sensitivity of 3D mouse. */ float ndof_sensitivity; float ndof_orbit_sensitivity; - /** Deadzone of 3D mouse. */ + /** Dead-zone of 3D mouse. */ float ndof_deadzone; /** #eNdof_Flag, flags for 3D mouse. */ int ndof_flag; diff --git a/source/blender/makesdna/intern/dna_genfile.c b/source/blender/makesdna/intern/dna_genfile.c index 86ba306fc6a..09a7a157996 100644 --- a/source/blender/makesdna/intern/dna_genfile.c +++ b/source/blender/makesdna/intern/dna_genfile.c @@ -1102,7 +1102,7 @@ static void reconstruct_elem(const SDNA *newsdna, * - cast type * - name partially equal (array differs) * - type equal: memcpy - * - types casten + * - type cast (per element). * (nzc 2-4-2001 I want the 'unsigned' bit to be parsed as well. Where * can I force this?) */ |