Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_action_types.h
| Show First 20 Lines • Show All 259 Lines • ▼ Show 20 Lines | typedef struct bPoseChannel { | ||||
| /** Draws custom object instead of default bone shape. */ | /** Draws custom object instead of default bone shape. */ | ||||
| struct Object *custom; | struct Object *custom; | ||||
| /** | /** | ||||
| * Odd feature, display with another bones transform. | * Odd feature, display with another bones transform. | ||||
| * needed in rare cases for advanced rigs, | * needed in rare cases for advanced rigs, | ||||
| * since the alternative is highly complicated - campbell | * since the alternative is highly complicated - campbell | ||||
| */ | */ | ||||
| struct bPoseChannel *custom_tx; | struct bPoseChannel *custom_tx; | ||||
| float custom_scale; | float custom_scale; /* Deprecated */ | ||||
zeddb: You should probably add a `/* Deprecated */` comment here.
So:
` float custom_scale; /*… | |||||
| float custom_scale_xyz[3]; | |||||
| char _pad1[4]; | float custom_translation[3]; | ||||
Done Inline Actionschange offset_loc to translation sybren: change `offset_loc` to `translation` | |||||
| float custom_rotation_euler[3]; | |||||
Done Inline Actionschange eul to rotation_euler. There is no need to overly shorten names. sybren: change `eul` to `rotation_euler`. There is no need to overly shorten names. | |||||
| /** Transforms - written in by actions or transform. */ | /** Transforms - written in by actions or transform. */ | ||||
| float loc[3]; | float loc[3]; | ||||
| float size[3]; | float size[3]; | ||||
| /** | /** | ||||
| * Rotations - written in by actions or transform | * Rotations - written in by actions or transform | ||||
| * (but only one representation gets used at any time) | * (but only one representation gets used at any time) | ||||
| ▲ Show 20 Lines • Show All 132 Lines • ▼ Show 20 Lines | typedef enum ePchan_IkFlag { | ||||
| BONE_IK_NO_YDOF_TEMP = (1 << 11), | BONE_IK_NO_YDOF_TEMP = (1 << 11), | ||||
| BONE_IK_NO_ZDOF_TEMP = (1 << 12), | BONE_IK_NO_ZDOF_TEMP = (1 << 12), | ||||
| } ePchan_IkFlag; | } ePchan_IkFlag; | ||||
| /* PoseChannel->drawflag */ | /* PoseChannel->drawflag */ | ||||
| typedef enum ePchan_DrawFlag { | typedef enum ePchan_DrawFlag { | ||||
| PCHAN_DRAW_NO_CUSTOM_BONE_SIZE = (1 << 0), | PCHAN_DRAW_NO_CUSTOM_BONE_SIZE = (1 << 0), | ||||
| } ePchan_DrawFlag; | } ePchan_DrawFlag; | ||||
| #define PCHAN_CUSTOM_DRAW_SIZE(pchan) \ | |||||
Done Inline ActionsThis now no longer takes bone scale into account, so it's no longer a single macro that provides the correct draw size. This should be documented in a comment. sybren: This now no longer takes bone scale into account, so it's no longer a single macro that… | |||||
| (pchan)->custom_scale *( \ | /* Note: It doesn't take custom_scale_xyz into account */ | ||||
| ((pchan)->drawflag & PCHAN_DRAW_NO_CUSTOM_BONE_SIZE) ? 1.0f : (pchan)->bone->length) | #define PCHAN_CUSTOM_BONE_LENGTH(pchan) \ | ||||
| (((pchan)->drawflag & PCHAN_DRAW_NO_CUSTOM_BONE_SIZE) ? 1.0f : (pchan)->bone->length) | |||||
| #ifdef DNA_DEPRECATED_ALLOW | #ifdef DNA_DEPRECATED_ALLOW | ||||
| /* PoseChannel->bboneflag */ | /* PoseChannel->bboneflag */ | ||||
| typedef enum ePchan_BBoneFlag { | typedef enum ePchan_BBoneFlag { | ||||
| /* Use custom reference bones (for roll and handle alignment), instead of immediate neighbors */ | /* Use custom reference bones (for roll and handle alignment), instead of immediate neighbors */ | ||||
| PCHAN_BBONE_CUSTOM_HANDLES = (1 << 1), | PCHAN_BBONE_CUSTOM_HANDLES = (1 << 1), | ||||
| /* Evaluate start handle as being "relative" */ | /* Evaluate start handle as being "relative" */ | ||||
| PCHAN_BBONE_CUSTOM_START_REL = (1 << 2), | PCHAN_BBONE_CUSTOM_START_REL = (1 << 2), | ||||
| ▲ Show 20 Lines • Show All 534 Lines • Show Last 20 Lines | |||||
You should probably add a /* Deprecated */ comment here.
So:
float custom_scale; /* Deprecated */