Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform.h
| Show First 20 Lines • Show All 441 Lines • ▼ Show 20 Lines | struct { | ||||
| TransCustomData type; | TransCustomData type; | ||||
| } custom; | } custom; | ||||
| #define TRANS_CUSTOM_DATA_ELEM_MAX (sizeof(((TransInfo *)NULL)->custom) / sizeof(TransCustomData)) | #define TRANS_CUSTOM_DATA_ELEM_MAX (sizeof(((TransInfo *)NULL)->custom) / sizeof(TransCustomData)) | ||||
| /*************** NEW STUFF *********************/ | /*************** NEW STUFF *********************/ | ||||
| short launch_event; /* event type used to launch transform */ | short launch_event; /* event type used to launch transform */ | ||||
| short current_orientation; | short current_orientation; | ||||
| TransformOrientation *custom_orientation; /* this gets used when current_orientation is V3D_MANIP_CUSTOM */ | |||||
| short twtype; /* backup from view3d, to restore on end */ | short twtype; /* backup from view3d, to restore on end */ | ||||
| short prop_mode; | short prop_mode; | ||||
| short mirror; | short mirror; | ||||
| float values[4]; | float values[4]; | ||||
| float auto_values[4]; | float auto_values[4]; | ||||
| ▲ Show 20 Lines • Show All 325 Lines • ▼ Show 20 Lines | |||||
| void initTransformOrientation(struct bContext *C, TransInfo *t); | void initTransformOrientation(struct bContext *C, TransInfo *t); | ||||
| /* Those two fill in mat and return non-zero on success */ | /* Those two fill in mat and return non-zero on success */ | ||||
| bool createSpaceNormal(float mat[3][3], const float normal[3]); | bool createSpaceNormal(float mat[3][3], const float normal[3]); | ||||
| bool createSpaceNormalTangent(float mat[3][3], const float normal[3], const float tangent[3]); | bool createSpaceNormalTangent(float mat[3][3], const float normal[3], const float tangent[3]); | ||||
| struct TransformOrientation *addMatrixSpace(struct bContext *C, float mat[3][3], | struct TransformOrientation *addMatrixSpace(struct bContext *C, float mat[3][3], | ||||
| const char *name, const bool overwrite); | const char *name, const bool overwrite); | ||||
| bool applyTransformOrientation(const struct bContext *C, float mat[3][3], char r_name[64], int index); | bool applyTransformOrientation(const struct TransformOrientation *ts, float r_mat[3][3], char r_name[64]); | ||||
| #define ORIENTATION_NONE 0 | #define ORIENTATION_NONE 0 | ||||
| #define ORIENTATION_NORMAL 1 | #define ORIENTATION_NORMAL 1 | ||||
| #define ORIENTATION_VERT 2 | #define ORIENTATION_VERT 2 | ||||
| #define ORIENTATION_EDGE 3 | #define ORIENTATION_EDGE 3 | ||||
| #define ORIENTATION_FACE 4 | #define ORIENTATION_FACE 4 | ||||
| int getTransformOrientation_ex(const struct bContext *C, float normal[3], float plane[3], const short around); | int getTransformOrientation_ex(const struct bContext *C, float normal[3], float plane[3], const short around); | ||||
| Show All 19 Lines | |||||