Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_constraint_types.h
| Show First 20 Lines • Show All 701 Lines • ▼ Show 20 Lines | typedef enum eBConstraint_Flags { | ||||
| /* indicates that constraint is temporarily disabled (only used in GE) */ | /* indicates that constraint is temporarily disabled (only used in GE) */ | ||||
| CONSTRAINT_OFF = (1 << 9), | CONSTRAINT_OFF = (1 << 9), | ||||
| /* use bbone curve shape when calculating headtail values (also used by dependency graph!) */ | /* use bbone curve shape when calculating headtail values (also used by dependency graph!) */ | ||||
| CONSTRAINT_BBONE_SHAPE = (1 << 10), | CONSTRAINT_BBONE_SHAPE = (1 << 10), | ||||
| /* That constraint has been inserted in local override (i.e. it can be fully edited!). */ | /* That constraint has been inserted in local override (i.e. it can be fully edited!). */ | ||||
| CONSTRAINT_OVERRIDE_LIBRARY_LOCAL = (1 << 11), | CONSTRAINT_OVERRIDE_LIBRARY_LOCAL = (1 << 11), | ||||
| /* use full transformation (not just segment locations) - only set at runtime */ | /* use full transformation (not just segment locations) - only set at runtime */ | ||||
| CONSTRAINT_BBONE_SHAPE_FULL = (1 << 12), | CONSTRAINT_BBONE_SHAPE_FULL = (1 << 12), | ||||
| /* use the owner matrix before the start of evaluation as input to the constraint */ | |||||
| CONSTRAINT_START_MATRIX = (1 << 13), | |||||
| } eBConstraint_Flags; | } 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). */ | ||||
| ▲ Show 20 Lines • Show All 368 Lines • ▼ Show 20 Lines | typedef enum eChildOf_Flags { | ||||
| CHILDOF_LOCZ = (1 << 2), | CHILDOF_LOCZ = (1 << 2), | ||||
| CHILDOF_ROTX = (1 << 3), | CHILDOF_ROTX = (1 << 3), | ||||
| CHILDOF_ROTY = (1 << 4), | CHILDOF_ROTY = (1 << 4), | ||||
| CHILDOF_ROTZ = (1 << 5), | CHILDOF_ROTZ = (1 << 5), | ||||
| CHILDOF_SIZEX = (1 << 6), | CHILDOF_SIZEX = (1 << 6), | ||||
| CHILDOF_SIZEY = (1 << 7), | CHILDOF_SIZEY = (1 << 7), | ||||
| CHILDOF_SIZEZ = (1 << 8), | CHILDOF_SIZEZ = (1 << 8), | ||||
| CHILDOF_ALL = 511, | CHILDOF_ALL = 511, | ||||
| /* Temporary flag used by the Set Inverse operator. */ | |||||
| CHILDOF_SET_INVERSE = (1 << 9), | |||||
| } eChildOf_Flags; | } eChildOf_Flags; | ||||
| /* Pivot Constraint */ | /* Pivot Constraint */ | ||||
| /* Restrictions for Pivot Constraint axis to consider for enabling constraint */ | /* Restrictions for Pivot Constraint axis to consider for enabling constraint */ | ||||
| typedef enum ePivotConstraint_Axis { | typedef enum ePivotConstraint_Axis { | ||||
| /* do not consider this activity-clamping */ | /* do not consider this activity-clamping */ | ||||
| PIVOTCON_AXIS_NONE = -1, | PIVOTCON_AXIS_NONE = -1, | ||||
| Show All 35 Lines | |||||
| /* CameraSolver Constraint -> flag */ | /* CameraSolver Constraint -> flag */ | ||||
| typedef enum eCameraSolver_Flags { | typedef enum eCameraSolver_Flags { | ||||
| CAMERASOLVER_ACTIVECLIP = (1 << 0), | CAMERASOLVER_ACTIVECLIP = (1 << 0), | ||||
| } eCameraSolver_Flags; | } eCameraSolver_Flags; | ||||
| /* ObjectSolver Constraint -> flag */ | /* ObjectSolver Constraint -> flag */ | ||||
| typedef enum eObjectSolver_Flags { | typedef enum eObjectSolver_Flags { | ||||
| OBJECTSOLVER_ACTIVECLIP = (1 << 0), | OBJECTSOLVER_ACTIVECLIP = (1 << 0), | ||||
| OBJECTSOLVER_SET_INVERSE = (1 << 1), | |||||
| } eObjectSolver_Flags; | } eObjectSolver_Flags; | ||||
| /* ObjectSolver Constraint -> flag */ | /* ObjectSolver Constraint -> flag */ | ||||
| typedef enum eStretchTo_Flags { | typedef enum eStretchTo_Flags { | ||||
| STRETCHTOCON_USE_BULGE_MIN = (1 << 0), | STRETCHTOCON_USE_BULGE_MIN = (1 << 0), | ||||
| STRETCHTOCON_USE_BULGE_MAX = (1 << 1), | STRETCHTOCON_USE_BULGE_MAX = (1 << 1), | ||||
| } eStretchTo_Flags; | } eStretchTo_Flags; | ||||
| /* important: these defines need to match up with PHY_DynamicTypes headerfile */ | /* important: these defines need to match up with PHY_DynamicTypes headerfile */ | ||||
| #define CONSTRAINT_RB_BALL 1 | #define CONSTRAINT_RB_BALL 1 | ||||
| #define CONSTRAINT_RB_HINGE 2 | #define CONSTRAINT_RB_HINGE 2 | ||||
| #define CONSTRAINT_RB_CONETWIST 4 | #define CONSTRAINT_RB_CONETWIST 4 | ||||
| #define CONSTRAINT_RB_VEHICLE 11 | #define CONSTRAINT_RB_VEHICLE 11 | ||||
| #define CONSTRAINT_RB_GENERIC6DOF 12 | #define CONSTRAINT_RB_GENERIC6DOF 12 | ||||
| #endif | #endif | ||||