Cleanup: style, use doxygen for comments

This commit is contained in:
2019-03-15 09:41:13 +11:00
parent 23272ee099
commit 395a0acdb8
5 changed files with 150 additions and 137 deletions

View File

@@ -83,7 +83,7 @@ typedef enum eFModifier_Types {
FMODIFIER_TYPE_ENVELOPE = 3, FMODIFIER_TYPE_ENVELOPE = 3,
FMODIFIER_TYPE_CYCLES = 4, FMODIFIER_TYPE_CYCLES = 4,
FMODIFIER_TYPE_NOISE = 5, FMODIFIER_TYPE_NOISE = 5,
/** unimplemented - for applying: fft, high/low pass filters, etc. */ /** Unimplemented - for applying: fft, high/low pass filters, etc. */
FMODIFIER_TYPE_FILTER = 6, FMODIFIER_TYPE_FILTER = 6,
FMODIFIER_TYPE_PYTHON = 7, FMODIFIER_TYPE_PYTHON = 7,
FMODIFIER_TYPE_LIMITS = 8, FMODIFIER_TYPE_LIMITS = 8,
@@ -93,27 +93,27 @@ typedef enum eFModifier_Types {
FMODIFIER_NUM_TYPES FMODIFIER_NUM_TYPES
} eFModifier_Types; } eFModifier_Types;
/* F-Curve Modifier Settings */ /** F-Curve Modifier Settings. */
typedef enum eFModifier_Flags { typedef enum eFModifier_Flags {
/* modifier is not able to be evaluated for some reason, and should be skipped (internal) */ /** Modifier is not able to be evaluated for some reason, and should be skipped (internal). */
FMODIFIER_FLAG_DISABLED = (1<<0), FMODIFIER_FLAG_DISABLED = (1 << 0),
/* modifier's data is expanded (in UI) */ /** Modifier's data is expanded (in UI). */
FMODIFIER_FLAG_EXPANDED = (1<<1), FMODIFIER_FLAG_EXPANDED = (1 << 1),
/* modifier is active one (in UI) for editing purposes */ /** Modifier is active one (in UI) for editing purposes. */
FMODIFIER_FLAG_ACTIVE = (1<<2), FMODIFIER_FLAG_ACTIVE = (1 << 2),
/* user wants modifier to be skipped */ /** User wants modifier to be skipped. */
FMODIFIER_FLAG_MUTED = (1<<3), FMODIFIER_FLAG_MUTED = (1 << 3),
/* restrict range that F-Modifier can be considered over */ /** Restrict range that F-Modifier can be considered over. */
FMODIFIER_FLAG_RANGERESTRICT = (1<<4), FMODIFIER_FLAG_RANGERESTRICT = (1 << 4),
/* use influence control */ /** Use influence control. */
FMODIFIER_FLAG_USEINFLUENCE = (1<<5), FMODIFIER_FLAG_USEINFLUENCE = (1 << 5),
} eFModifier_Flags; } eFModifier_Flags;
/* --- */ /* --- */
/* Generator modifier data */ /* Generator modifier data */
typedef struct FMod_Generator { typedef struct FMod_Generator {
/* general generator information */ /* general generator information */
/** Coefficients array. */ /** Coefficients array. */
float *coefficients; float *coefficients;
/** Size of the coefficients array. */ /** Size of the coefficients array. */
@@ -124,7 +124,6 @@ typedef struct FMod_Generator {
/** Which 'generator' to use eFMod_Generator_Modes. */ /** Which 'generator' to use eFMod_Generator_Modes. */
int mode; int mode;
/* settings */
/** Settings. */ /** Settings. */
int flag; int flag;
} FMod_Generator; } FMod_Generator;
@@ -252,10 +251,10 @@ typedef struct FMod_Limits {
/* limiting flags */ /* limiting flags */
typedef enum eFMod_Limit_Flags { typedef enum eFMod_Limit_Flags {
FCM_LIMIT_XMIN = (1<<0), FCM_LIMIT_XMIN = (1 << 0),
FCM_LIMIT_XMAX = (1<<1), FCM_LIMIT_XMAX = (1 << 1),
FCM_LIMIT_YMIN = (1<<2), FCM_LIMIT_YMIN = (1 << 2),
FCM_LIMIT_YMAX = (1<<3), FCM_LIMIT_YMAX = (1 << 3),
} eFMod_Limit_Flags; } eFMod_Limit_Flags;
@@ -272,10 +271,14 @@ typedef struct FMod_Noise {
/* modification modes */ /* modification modes */
typedef enum eFMod_Noise_Modifications { typedef enum eFMod_Noise_Modifications {
FCM_NOISE_MODIF_REPLACE = 0, /* Modify existing curve, matching it's shape */ /** Modify existing curve, matching it's shape. */
FCM_NOISE_MODIF_ADD, /* Add noise to the curve */ FCM_NOISE_MODIF_REPLACE = 0,
FCM_NOISE_MODIF_SUBTRACT, /* Subtract noise from the curve */ /** Add noise to the curve. */
FCM_NOISE_MODIF_MULTIPLY /* Multiply the curve by noise */ FCM_NOISE_MODIF_ADD,
/** Subtract noise from the curve. */
FCM_NOISE_MODIF_SUBTRACT,
/** Multiply the curve by noise. */
FCM_NOISE_MODIF_MULTIPLY
} eFMod_Noise_Modifications; } eFMod_Noise_Modifications;
@@ -297,8 +300,10 @@ typedef struct FMod_Stepped {
/* stepped modifier range flags */ /* stepped modifier range flags */
typedef enum eFMod_Stepped_Flags { typedef enum eFMod_Stepped_Flags {
FCM_STEPPED_NO_BEFORE = (1<<0), /* don't affect frames before the start frame */ /** Don't affect frames before the start frame. */
FCM_STEPPED_NO_AFTER = (1<<1), /* don't affect frames after the end frame */ FCM_STEPPED_NO_BEFORE = (1<<0),
/** Don't affect frames after the end frame. */
FCM_STEPPED_NO_AFTER = (1<<1),
} eFMod_Stepped_Flags; } eFMod_Stepped_Flags;
/* Drivers -------------------------------------- */ /* Drivers -------------------------------------- */
@@ -331,22 +336,21 @@ typedef struct DriverTarget {
int idtype; int idtype;
} DriverTarget; } DriverTarget;
/* Driver Target flags */ /** Driver Target flags. */
typedef enum eDriverTarget_Flag { typedef enum eDriverTarget_Flag {
/* used for targets that use the pchan_name instead of RNA path /** used for targets that use the pchan_name instead of RNA path
* (i.e. rotation difference) * (i.e. rotation difference) */
*/
DTAR_FLAG_STRUCT_REF = (1 << 0), DTAR_FLAG_STRUCT_REF = (1 << 0),
/* idtype can only be 'Object' */ /** idtype can only be 'Object' */
DTAR_FLAG_ID_OB_ONLY = (1 << 1), DTAR_FLAG_ID_OB_ONLY = (1 << 1),
/* "localspace" flags */ /* "localspace" flags */
/* base flag - basically "pre parent+constraints" */ /** base flag - basically "pre parent+constraints" */
DTAR_FLAG_LOCALSPACE = (1 << 2), DTAR_FLAG_LOCALSPACE = (1 << 2),
/* include constraints transformed to space including parents */ /** include constraints transformed to space including parents */
DTAR_FLAG_LOCAL_CONSTS = (1 << 3), DTAR_FLAG_LOCAL_CONSTS = (1 << 3),
/* error flags */ /** error flags */
DTAR_FLAG_INVALID = (1 << 4), DTAR_FLAG_INVALID = (1 << 4),
} eDriverTarget_Flag; } eDriverTarget_Flag;
@@ -371,7 +375,8 @@ typedef enum eDriverTarget_TransformChannels {
#define MAX_DRIVER_TARGETS 8 #define MAX_DRIVER_TARGETS 8
/* Driver Variable (dvar) /**
* Driver Variable (dvar)
* *
* A 'variable' for use as an input for the driver evaluation. * A 'variable' for use as an input for the driver evaluation.
* Defines a way of accessing some channel to use, that can be * Defines a way of accessing some channel to use, that can be
@@ -401,20 +406,21 @@ typedef struct DriverVar {
float curval; float curval;
} DriverVar; } DriverVar;
/* Driver Variable Types */ /** Driver Variable Types.* */
typedef enum eDriverVar_Types { typedef enum eDriverVar_Types {
/* single RNA property */ /** single RNA property */
DVAR_TYPE_SINGLE_PROP = 0, DVAR_TYPE_SINGLE_PROP = 0,
/* rotation difference (between 2 bones) */ /** rotation difference (between 2 bones) */
DVAR_TYPE_ROT_DIFF, DVAR_TYPE_ROT_DIFF,
/* distance between objects/bones */ /** distance between objects/bones */
DVAR_TYPE_LOC_DIFF, DVAR_TYPE_LOC_DIFF,
/* 'final' transform for object/bones */ /** 'final' transform for object/bones */
DVAR_TYPE_TRANSFORM_CHAN, DVAR_TYPE_TRANSFORM_CHAN,
/* maximum number of variable types /** Maximum number of variable types.
* NOTE: this must always be th last item in this list, *
* so add new types above this line. * \note This must always be th last item in this list,
* so add new types above this line.
*/ */
MAX_DVAR_TYPES MAX_DVAR_TYPES
} eDriverVar_Types; } eDriverVar_Types;
@@ -456,7 +462,8 @@ typedef enum eDriverVar_Flags {
/* --- */ /* --- */
/* Channel Driver (i.e. Drivers / Expressions) (driver) /**
* Channel Driver (i.e. Drivers / Expressions) (driver)
* *
* Channel Drivers are part of the dependency system, and are executed in addition to * Channel Drivers are part of the dependency system, and are executed in addition to
* normal user-defined animation. They take the animation result of some channel(s), and * normal user-defined animation. They take the animation result of some channel(s), and
@@ -495,40 +502,41 @@ typedef struct ChannelDriver {
int flag; int flag;
} ChannelDriver; } ChannelDriver;
/* driver type */ /** Driver type. */
typedef enum eDriver_Types { typedef enum eDriver_Types {
/* target values are averaged together */ /** target values are averaged together. */
DRIVER_TYPE_AVERAGE = 0, DRIVER_TYPE_AVERAGE = 0,
/* python expression/function relates targets */ /** python expression/function relates targets. */
DRIVER_TYPE_PYTHON, DRIVER_TYPE_PYTHON,
/* sum of all values */ /** sum of all values. */
DRIVER_TYPE_SUM, DRIVER_TYPE_SUM,
/* smallest value */ /** smallest value. */
DRIVER_TYPE_MIN, DRIVER_TYPE_MIN,
/* largest value */ /** largest value. */
DRIVER_TYPE_MAX DRIVER_TYPE_MAX
} eDriver_Types; } eDriver_Types;
/* driver flags */ /** Driver flags. */
/* note: (1<<5) is deprecated; was "DRIVER_FLAG_SHOWDEBUG" */
typedef enum eDriver_Flags { typedef enum eDriver_Flags {
/* driver has invalid settings (internal flag) */ /** Driver has invalid settings (internal flag) */
DRIVER_FLAG_INVALID = (1<<0), DRIVER_FLAG_INVALID = (1 << 0),
DRIVER_FLAG_DEPRECATED = (1<<1), DRIVER_FLAG_DEPRECATED = (1 << 1),
/* driver does replace value, but overrides (for layering of animation over driver) */ /** Driver does replace value, but overrides (for layering of animation over driver) */
// TODO: this needs to be implemented at some stage or left out... // TODO: this needs to be implemented at some stage or left out...
//DRIVER_FLAG_LAYERING = (1<<2), //DRIVER_FLAG_LAYERING = (1 << 2),
/* use when the expression needs to be recompiled */ /** Use when the expression needs to be recompiled. */
DRIVER_FLAG_RECOMPILE = (1<<3), DRIVER_FLAG_RECOMPILE = (1 << 3),
/* the names are cached so they don't need have python unicode versions created each time */ /** The names are cached so they don't need have python unicode versions created each time */
DRIVER_FLAG_RENAMEVAR = (1<<4), DRIVER_FLAG_RENAMEVAR = (1 << 4),
/* include 'self' in the drivers namespace. */ // DRIVER_FLAG_DEPRECATED_5 = (1 << 5),
DRIVER_FLAG_USE_SELF = (1<<6), /** Include 'self' in the drivers namespace. */
DRIVER_FLAG_USE_SELF = (1 << 6),
} eDriver_Flags; } eDriver_Flags;
/* F-Curves -------------------------------------- */ /* F-Curves -------------------------------------- */
/* FPoint (fpt) /**
* FPoint (fpt)
* *
* This is the bare-minimum data required storing motion samples. Should be more efficient * This is the bare-minimum data required storing motion samples. Should be more efficient
* than using BPoints, which contain a lot of other unnecessary data... * than using BPoints, which contain a lot of other unnecessary data...
@@ -664,7 +672,8 @@ typedef enum eFCurve_Smoothing {
/* NLA Strips ------------------------------------- */ /* NLA Strips ------------------------------------- */
/* NLA Strip (strip) /**
* NLA Strip (strip)
* *
* A NLA Strip is a container for the reuse of Action data, defining parameters * A NLA Strip is a container for the reuse of Action data, defining parameters
* to control the remapping of the Action data to some destination. * to control the remapping of the Action data to some destination.
@@ -729,7 +738,7 @@ typedef enum eNlaStrip_Blend_Mode {
NLASTRIP_MODE_COMBINE, NLASTRIP_MODE_COMBINE,
} eNlaStrip_Blend_Mode; } eNlaStrip_Blend_Mode;
/* NLA Strip Extrpolation Mode */ /** NLA Strip Extrpolation Mode. */
typedef enum eNlaStrip_Extrapolate_Mode { typedef enum eNlaStrip_Extrapolate_Mode {
/* extend before first frame if no previous strips in track, /* extend before first frame if no previous strips in track,
* and always hold+extend last frame */ * and always hold+extend last frame */
@@ -740,63 +749,64 @@ typedef enum eNlaStrip_Extrapolate_Mode {
NLASTRIP_EXTEND_NOTHING = 2, NLASTRIP_EXTEND_NOTHING = 2,
} eNlaStrip_Extrapolate_Mode; } eNlaStrip_Extrapolate_Mode;
/* NLA Strip Settings */ /** NLA Strip Settings. */
typedef enum eNlaStrip_Flag { typedef enum eNlaStrip_Flag {
/* UI selection flags */ /* UI selection flags */
/* NLA strip is the active one in the track (also indicates if strip is being tweaked) */ /** NLA strip is the active one in the track (also indicates if strip is being tweaked) */
NLASTRIP_FLAG_ACTIVE = (1<<0), NLASTRIP_FLAG_ACTIVE = (1<<0),
/* NLA strip is selected for editing */ /* NLA strip is selected for editing */
NLASTRIP_FLAG_SELECT = (1<<1), NLASTRIP_FLAG_SELECT = (1<<1),
// NLASTRIP_FLAG_SELECT_L = (1<<2), // left handle selected // NLASTRIP_FLAG_SELECT_L = (1<<2), // left handle selected
// NLASTRIP_FLAG_SELECT_R = (1<<3), // right handle selected // NLASTRIP_FLAG_SELECT_R = (1<<3), // right handle selected
/* NLA strip uses the same action that the action being tweaked uses /** NLA strip uses the same action that the action being tweaked uses
* (not set for the tweaking one though). */ * (not set for the tweaking one though). */
NLASTRIP_FLAG_TWEAKUSER = (1<<4), NLASTRIP_FLAG_TWEAKUSER = (1<<4),
/* controls driven by local F-Curves */ /* controls driven by local F-Curves */
/* strip influence is controlled by local F-Curve */ /** strip influence is controlled by local F-Curve */
NLASTRIP_FLAG_USR_INFLUENCE = (1<<5), NLASTRIP_FLAG_USR_INFLUENCE = (1<<5),
NLASTRIP_FLAG_USR_TIME = (1<<6), NLASTRIP_FLAG_USR_TIME = (1<<6),
NLASTRIP_FLAG_USR_TIME_CYCLIC = (1<<7), NLASTRIP_FLAG_USR_TIME_CYCLIC = (1<<7),
/* NLA strip length is synced to the length of the referenced action */ /** NLA strip length is synced to the length of the referenced action */
NLASTRIP_FLAG_SYNC_LENGTH = (1<<9), NLASTRIP_FLAG_SYNC_LENGTH = (1<<9),
/* playback flags (may be overridden by F-Curves) */ /* playback flags (may be overridden by F-Curves) */
/* NLA strip blendin/out values are set automatically based on overlaps */ /** NLA strip blendin/out values are set automatically based on overlaps */
NLASTRIP_FLAG_AUTO_BLENDS = (1<<10), NLASTRIP_FLAG_AUTO_BLENDS = (1<<10),
/* NLA strip is played back in reverse order */ /** NLA strip is played back in reverse order */
NLASTRIP_FLAG_REVERSE = (1<<11), NLASTRIP_FLAG_REVERSE = (1<<11),
/* NLA strip is muted (i.e. doesn't contribute in any way) */ /** NLA strip is muted (i.e. doesn't contribute in any way) */
NLASTRIP_FLAG_MUTED = (1<<12), NLASTRIP_FLAG_MUTED = (1<<12),
/* NLA Strip is played back in 'ping-pong' style */ /** NLA Strip is played back in 'ping-pong' style */
NLASTRIP_FLAG_MIRROR = (1<<13), NLASTRIP_FLAG_MIRROR = (1<<13),
/* temporary editing flags */ /* temporary editing flags */
/* NLA strip should ignore frame range and hold settings, and evaluate at global time. */ /** NLA strip should ignore frame range and hold settings, and evaluate at global time. */
NLASTRIP_FLAG_NO_TIME_MAP = (1<<29), NLASTRIP_FLAG_NO_TIME_MAP = (1<<29),
/* NLA-Strip is really just a temporary meta used to facilitate easier transform code */ /** NLA-Strip is really just a temporary meta used to facilitate easier transform code */
NLASTRIP_FLAG_TEMP_META = (1<<30), NLASTRIP_FLAG_TEMP_META = (1<<30),
NLASTRIP_FLAG_EDIT_TOUCHED = (1u << 31), NLASTRIP_FLAG_EDIT_TOUCHED = (1u << 31),
} eNlaStrip_Flag; } eNlaStrip_Flag;
/* NLA Strip Type */ /* NLA Strip Type */
typedef enum eNlaStrip_Type { typedef enum eNlaStrip_Type {
/* 'clip' - references an Action */ /* 'clip' - references an Action */
NLASTRIP_TYPE_CLIP = 0, NLASTRIP_TYPE_CLIP = 0,
/* 'transition' - blends between the adjacent strips */ /* 'transition' - blends between the adjacent strips */
NLASTRIP_TYPE_TRANSITION, NLASTRIP_TYPE_TRANSITION,
/* 'meta' - a strip which acts as a container for a few others */ /* 'meta' - a strip which acts as a container for a few others */
NLASTRIP_TYPE_META, NLASTRIP_TYPE_META,
/* 'emit sound' - a strip which is used for timing when speaker emits sounds */ /* 'emit sound' - a strip which is used for timing when speaker emits sounds */
NLASTRIP_TYPE_SOUND NLASTRIP_TYPE_SOUND
} eNlaStrip_Type; } eNlaStrip_Type;
/* NLA Tracks ------------------------------------- */ /* NLA Tracks ------------------------------------- */
/* NLA Track (nlt) /**
* NLA Track (nlt)
* *
* A track groups a bunch of 'strips', which should form a continuous set of * A track groups a bunch of 'strips', which should form a continuous set of
* motion, on top of which other such groups can be layered. This should allow * motion, on top of which other such groups can be layered. This should allow
@@ -842,7 +852,8 @@ typedef enum eNlaTrack_Flag {
/* ************************************ */ /* ************************************ */
/* KeyingSet Datatypes */ /* KeyingSet Datatypes */
/* Path for use in KeyingSet definitions (ksp) /**
* Path for use in KeyingSet definitions (ksp)
* *
* Paths may be either specific (specifying the exact sub-ID * Paths may be either specific (specifying the exact sub-ID
* dynamic data-block - such as PoseChannels - to act upon, ala * dynamic data-block - such as PoseChannels - to act upon, ala
@@ -885,21 +896,21 @@ typedef enum eKSP_Settings {
/* KS_Path->groupmode */ /* KS_Path->groupmode */
typedef enum eKSP_Grouping { typedef enum eKSP_Grouping {
/* path should be grouped using group name stored in path */ /** Path should be grouped using group name stored in path. */
KSP_GROUP_NAMED = 0, KSP_GROUP_NAMED = 0,
/* path should not be grouped at all */ /** Path should not be grouped at all. */
KSP_GROUP_NONE, KSP_GROUP_NONE,
/* path should be grouped using KeyingSet's name */ /** Path should be grouped using KeyingSet's name. */
KSP_GROUP_KSNAME, KSP_GROUP_KSNAME,
/* path should be grouped using name of inner-most context item from templates /** Path should be grouped using name of inner-most context item from templates
* - this is most useful for relative KeyingSets only * - this is most useful for relative KeyingSets only. */
*/
KSP_GROUP_TEMPLATE_ITEM KSP_GROUP_TEMPLATE_ITEM
} eKSP_Grouping; } eKSP_Grouping;
/* ---------------- */ /* ---------------- */
/* KeyingSet definition (ks) /**
* KeyingSet definition (ks)
* *
* A KeyingSet defines a group of properties that should * A KeyingSet defines a group of properties that should
* be keyframed together, providing a convenient way for animators * be keyframed together, providing a convenient way for animators
@@ -940,9 +951,9 @@ typedef struct KeyingSet {
/* KeyingSet settings */ /* KeyingSet settings */
typedef enum eKS_Settings { typedef enum eKS_Settings {
/* keyingset cannot be removed (and doesn't need to be freed) */ /** Keyingset cannot be removed (and doesn't need to be freed). */
KEYINGSET_BUILTIN = (1<<0), KEYINGSET_BUILTIN = (1<<0),
/* keyingset does not depend on context info (i.e. paths are absolute) */ /** Keyingset does not depend on context info (i.e. paths are absolute). */
KEYINGSET_ABSOLUTE = (1<<1), KEYINGSET_ABSOLUTE = (1<<1),
} eKS_Settings; } eKS_Settings;
@@ -978,7 +989,8 @@ typedef enum eInsertKeyFlags {
/* AnimOverride ------------------------------------- */ /* AnimOverride ------------------------------------- */
/* Animation Override (aor) /**
* Animation Override (aor)
* *
* This is used to as temporary storage of values which have been changed by the user, but not * This is used to as temporary storage of values which have been changed by the user, but not
* yet keyframed (thus, would get overwritten by the animation system before the user had a chance * yet keyframed (thus, would get overwritten by the animation system before the user had a chance
@@ -1001,7 +1013,8 @@ typedef struct AnimOverride {
/* AnimData ------------------------------------- */ /* AnimData ------------------------------------- */
/* Animation data for some ID block (adt) /**
* Animation data for some ID block (adt)
* *
* This block of data is used to provide all of the necessary animation data for a datablock. * This block of data is used to provide all of the necessary animation data for a datablock.
* Currently, this data will not be reusable, as there shouldn't be any need to do so. * Currently, this data will not be reusable, as there shouldn't be any need to do so.
@@ -1063,37 +1076,38 @@ typedef struct AnimData {
/* Animation Data settings (mostly for NLA) */ /* Animation Data settings (mostly for NLA) */
typedef enum eAnimData_Flag { typedef enum eAnimData_Flag {
/* only evaluate a single track in the NLA */ /** Only evaluate a single track in the NLA. */
ADT_NLA_SOLO_TRACK = (1<<0), ADT_NLA_SOLO_TRACK = (1<<0),
/* don't use NLA */ /** Don't use NLA */
ADT_NLA_EVAL_OFF = (1<<1), ADT_NLA_EVAL_OFF = (1<<1),
/* NLA is being 'tweaked' (i.e. in EditMode) */ /** NLA is being 'tweaked' (i.e. in EditMode). */
ADT_NLA_EDIT_ON = (1<<2), ADT_NLA_EDIT_ON = (1<<2),
/* active Action for 'tweaking' does not have mapping applied for editing */ /** Active Action for 'tweaking' does not have mapping applied for editing. */
ADT_NLA_EDIT_NOMAP = (1<<3), ADT_NLA_EDIT_NOMAP = (1<<3),
/* NLA-Strip F-Curves are expanded in UI */ /** NLA-Strip F-Curves are expanded in UI. */
ADT_NLA_SKEYS_COLLAPSED = (1<<4), ADT_NLA_SKEYS_COLLAPSED = (1<<4),
/* drivers expanded in UI */ /** Drivers expanded in UI. */
ADT_DRIVERS_COLLAPSED = (1<<10), ADT_DRIVERS_COLLAPSED = (1<<10),
/* don't execute drivers */ /** Don't execute drivers. */
ADT_DRIVERS_DISABLED = (1<<11), ADT_DRIVERS_DISABLED = (1<<11),
/* AnimData block is selected in UI */ /** AnimData block is selected in UI. */
ADT_UI_SELECTED = (1<<14), ADT_UI_SELECTED = (1<<14),
/* AnimData block is active in UI */ /** AnimData block is active in UI. */
ADT_UI_ACTIVE = (1<<15), ADT_UI_ACTIVE = (1<<15),
/* F-Curves from this AnimData block are not visible in the Graph Editor */ /** F-Curves from this AnimData block are not visible in the Graph Editor. */
ADT_CURVES_NOT_VISIBLE = (1<<16), ADT_CURVES_NOT_VISIBLE = (1<<16),
/* F-Curves from this AnimData block are always visible */ /** F-Curves from this AnimData block are always visible. */
ADT_CURVES_ALWAYS_VISIBLE = (1<<17), ADT_CURVES_ALWAYS_VISIBLE = (1<<17),
} eAnimData_Flag; } eAnimData_Flag;
/* Base Struct for Anim ------------------------------------- */ /* Base Struct for Anim ------------------------------------- */
/* Used for BKE_animdata_from_id() /**
* Used for BKE_animdata_from_id()
* All ID-datablocks which have their own 'local' AnimData * All ID-datablocks which have their own 'local' AnimData
* should have the same arrangement in their structs. * should have the same arrangement in their structs.
*/ */

View File

@@ -694,17 +694,16 @@ typedef enum eBConstraint_Flags {
/* bConstraint->ownspace/tarspace */ /* bConstraint->ownspace/tarspace */
typedef enum eBConstraint_SpaceTypes { typedef enum eBConstraint_SpaceTypes {
/* default for all - worldspace */ /** Default for all - worldspace. */
CONSTRAINT_SPACE_WORLD = 0, CONSTRAINT_SPACE_WORLD = 0,
/* for objects (relative to parent/without parent influence), /** For objects (relative to parent/without parent influence),
* for bones (along normals of bone, without parent/restpositions) * for bones (along normals of bone, without parent/restpositions). */
*/
CONSTRAINT_SPACE_LOCAL = 1, CONSTRAINT_SPACE_LOCAL = 1,
/* for posechannels - pose space */ /** For posechannels - pose space. */
CONSTRAINT_SPACE_POSE = 2, CONSTRAINT_SPACE_POSE = 2,
/* for posechannels - local with parent */ /** For posechannels - local with parent. */
CONSTRAINT_SPACE_PARLOCAL = 3, CONSTRAINT_SPACE_PARLOCAL = 3,
/* for files from between 2.43-2.46 (should have been parlocal) */ /** For files from between 2.43-2.46 (should have been parlocal). */
CONSTRAINT_SPACE_INVALID = 4 /* do not exchange for anything! */ CONSTRAINT_SPACE_INVALID = 4 /* do not exchange for anything! */
} eBConstraint_SpaceTypes; } eBConstraint_SpaceTypes;
@@ -733,7 +732,7 @@ typedef enum eCopyLocation_Flags {
LOCLIKE_X = (1<<0), LOCLIKE_X = (1<<0),
LOCLIKE_Y = (1<<1), LOCLIKE_Y = (1<<1),
LOCLIKE_Z = (1<<2), LOCLIKE_Z = (1<<2),
/* LOCLIKE_TIP is a deprecated option... use headtail=1.0f instead */ /** LOCLIKE_TIP is a deprecated option... use headtail=1.0f instead */
LOCLIKE_TIP = (1<<3), LOCLIKE_TIP = (1<<3),
LOCLIKE_X_INVERT = (1<<4), LOCLIKE_X_INVERT = (1<<4),
LOCLIKE_Y_INVERT = (1<<5), LOCLIKE_Y_INVERT = (1<<5),

View File

@@ -382,18 +382,18 @@ typedef struct SoftBody {
/* self collision*/ /* self collision*/
/** Fixed collision ball size if > 0. */ /** Fixed collision ball size if > 0. */
float colball; float colball;
/** Cooling down collision response . */ /** Cooling down collision response. */
float balldamp; float balldamp;
/** Pressure the ball is loaded with . */ /** Pressure the ball is loaded with. */
float ballstiff; float ballstiff;
short sbc_mode; short sbc_mode;
short aeroedge, short aeroedge;
minloops, short minloops;
maxloops, short maxloops;
choke, short choke;
solver_ID, short solver_ID;
plastic, springpreload short plastic;
; short springpreload;
/** Scratchpad/cache on live time not saved in file. */ /** Scratchpad/cache on live time not saved in file. */
struct SBScratch *scratch; struct SBScratch *scratch;

View File

@@ -197,23 +197,23 @@ typedef enum eRigidBodyOb_Flag {
/* RigidBody Collision Shape */ /* RigidBody Collision Shape */
typedef enum eRigidBody_Shape { typedef enum eRigidBody_Shape {
/* simple box (i.e. bounding box) */ /** Simple box (i.e. bounding box). */
RB_SHAPE_BOX = 0, RB_SHAPE_BOX = 0,
/* sphere */ /** Sphere. */
RB_SHAPE_SPHERE, RB_SHAPE_SPHERE,
/* rounded "pill" shape (i.e. calcium tablets) */ /** Rounded "pill" shape (i.e. calcium tablets). */
RB_SHAPE_CAPSULE, RB_SHAPE_CAPSULE,
/* cylinder (i.e. pringles can) */ /** Cylinder (i.e. pringles can). */
RB_SHAPE_CYLINDER, RB_SHAPE_CYLINDER,
/* cone (i.e. party hat) */ /** Cone (i.e. party hat). */
RB_SHAPE_CONE, RB_SHAPE_CONE,
/* convex hull (minimal shrinkwrap encompassing all verts) */ /** Convex hull (minimal shrinkwrap encompassing all verts). */
RB_SHAPE_CONVEXH, RB_SHAPE_CONVEXH,
/* triangulated mesh */ /** Triangulated mesh. */
RB_SHAPE_TRIMESH, RB_SHAPE_TRIMESH,
/* concave mesh approximated using primitives */ /* concave mesh approximated using primitives */
//RB_SHAPE_COMPOUND, //RB_SHAPE_COMPOUND,
} eRigidBody_Shape; } eRigidBody_Shape;

View File

@@ -274,8 +274,8 @@ typedef struct MovieTrackingSettings {
/* two keyframes for reconstruction initialization /* two keyframes for reconstruction initialization
* were moved to per-tracking object settings * were moved to per-tracking object settings
*/ */
int keyframe1 DNA_DEPRECATED, int keyframe1 DNA_DEPRECATED;
keyframe2 DNA_DEPRECATED; int keyframe2 DNA_DEPRECATED;
int reconstruction_flag; int reconstruction_flag;