Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform.h
| Show First 20 Lines • Show All 656 Lines • ▼ Show 20 Lines | struct { | ||||
| /* this gets used when custom_orientation is V3D_ORIENT_CUSTOM */ | /* this gets used when custom_orientation is V3D_ORIENT_CUSTOM */ | ||||
| TransformOrientation *custom; | TransformOrientation *custom; | ||||
| } orientation; | } orientation; | ||||
| /** backup from view3d, to restore on end. */ | /** backup from view3d, to restore on end. */ | ||||
| short gizmo_flag; | short gizmo_flag; | ||||
| short prop_mode; | short prop_mode; | ||||
| /** Value taken as input, either through mouse coordinates or entered as a parameter. */ | |||||
| float values[4]; | float values[4]; | ||||
| /** Offset applied ontop of modal input. */ | /** Offset applied ontop of modal input. */ | ||||
| float values_modal_offset[4]; | float values_modal_offset[4]; | ||||
| float auto_values[4]; | |||||
| /** Final value of the transformation (displayed in the redo panel). | |||||
| * If the operator is executed directly (not modal), this value is usually the | |||||
campbellbarton: It wouldn't hurt to be a bit more explicit about when each of these is used.
- Which has… | |||||
Done Inline ActionsShould be values_final for consistency, same for flag. campbellbarton: Should be `values_final` for consistency, same for flag. | |||||
| * value of the input parameter, except when a constrain is entered. */ | |||||
| float values_final[4]; | |||||
| /* Axis members for modes that use an axis separate from the orientation (rotate & shear). */ | /* Axis members for modes that use an axis separate from the orientation (rotate & shear). */ | ||||
| /** Primary axis, rotate only uses this. */ | /** Primary axis, rotate only uses this. */ | ||||
| int orient_axis; | int orient_axis; | ||||
| /** Secondary axis, shear uses this. */ | /** Secondary axis, shear uses this. */ | ||||
| int orient_axis_ortho; | int orient_axis_ortho; | ||||
| ▲ Show 20 Lines • Show All 82 Lines • ▼ Show 20 Lines | enum { | ||||
| T_CLIP_UV = 1 << 16, | T_CLIP_UV = 1 << 16, | ||||
| /** Auto-ik is on. */ | /** Auto-ik is on. */ | ||||
| T_AUTOIK = 1 << 18, | T_AUTOIK = 1 << 18, | ||||
| /** Don't use mirror even if the data-block option is set. */ | /** Don't use mirror even if the data-block option is set. */ | ||||
| T_NO_MIRROR = 1 << 19, | T_NO_MIRROR = 1 << 19, | ||||
| T_AUTOVALUES = 1 << 20, | /** To indicate that the value set in the `value` parameter is the final | ||||
| * value of the transformation, modified only by the constrain. */ | |||||
| T_INPUT_IS_VALUES_FINAL = 1 << 20, | |||||
Done Inline ActionsEven though auto-values didn't have comments, this could, 1-2 lines explaining why it's needed. campbellbarton: Even though auto-values didn't have comments, this could, 1-2 lines explaining why it's needed. | |||||
| /** To specify if we save back settings at the end. */ | /** To specify if we save back settings at the end. */ | ||||
| T_MODAL = 1 << 21, | T_MODAL = 1 << 21, | ||||
| /** No retopo. */ | /** No retopo. */ | ||||
| T_NO_PROJECT = 1 << 22, | T_NO_PROJECT = 1 << 22, | ||||
| T_RELEASE_CONFIRM = 1 << 23, | T_RELEASE_CONFIRM = 1 << 23, | ||||
| ▲ Show 20 Lines • Show All 384 Lines • Show Last 20 Lines | |||||
It wouldn't hurt to be a bit more explicit about when each of these is used.