Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform.h
| Show First 20 Lines • Show All 207 Lines • ▼ Show 20 Lines | typedef struct TransData2D { | ||||
| /** Pointer to real 2d location of data. */ | /** Pointer to real 2d location of data. */ | ||||
| float *loc2d; | float *loc2d; | ||||
| /** Pointer to handle locations, if handles aren't being moved independently. */ | /** Pointer to handle locations, if handles aren't being moved independently. */ | ||||
| float *h1, *h2; | float *h1, *h2; | ||||
| float ih1[2], ih2[2]; | float ih1[2], ih2[2]; | ||||
| } TransData2D; | } TransData2D; | ||||
| /** Used to store 2 handles for each #TransData in case the other handle wasn't selected. */ | /** | ||||
| * Used to store 2 handles for each #TransData in case the other handle wasn't selected. | |||||
| * Also to unset temporary flags. | |||||
| */ | |||||
| typedef struct TransDataCurveHandleFlags { | typedef struct TransDataCurveHandleFlags { | ||||
| char ih1, ih2; | char ih1, ih2; | ||||
| char *h1, *h2; | char *h1, *h2; | ||||
| } TransDataCurveHandleFlags; | } TransDataCurveHandleFlags; | ||||
| /** Used for sequencer transform. */ | /** Used for sequencer transform. */ | ||||
| typedef struct TransDataSeq { | typedef struct TransDataSeq { | ||||
| struct Sequence *seq; | struct Sequence *seq; | ||||
| ▲ Show 20 Lines • Show All 401 Lines • ▼ Show 20 Lines | typedef struct TransInfo { | ||||
| /** orientation matrix of the current space. */ | /** orientation matrix of the current space. */ | ||||
| float spacemtx[3][3]; | float spacemtx[3][3]; | ||||
| /** name of the current space, MAX_NAME. */ | /** name of the current space, MAX_NAME. */ | ||||
| char spacename[64]; | char spacename[64]; | ||||
| /*************** NEW STUFF *********************/ | /*************** NEW STUFF *********************/ | ||||
| /** event type used to launch transform. */ | /** event type used to launch transform. */ | ||||
| short launch_event; | short launch_event; | ||||
| /** Is the actual launch event a tweak event? (launch_event above is set to the corresponding | |||||
| * mouse button then.) */ | |||||
| bool is_launch_event_tweak; | |||||
| struct { | struct { | ||||
| /** Orientation type when when we're not constrained. | /** Orientation type when when we're not constrained. | ||||
| * nearly always global except for rotate which defaults to screen-space orientation. */ | * nearly always global except for rotate which defaults to screen-space orientation. */ | ||||
| short unset; | short unset; | ||||
| /** Orientation to use when a key is pressed. */ | /** Orientation to use when a key is pressed. */ | ||||
| short user; | short user; | ||||
| /* Used when user is global. */ | /* Used when user is global. */ | ||||
| ▲ Show 20 Lines • Show All 439 Lines • Show Last 20 Lines | |||||