Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/editors/transform/transform.h')
-rw-r--r--source/blender/editors/transform/transform.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/source/blender/editors/transform/transform.h b/source/blender/editors/transform/transform.h
index b0f720bfdf7..b023199fa1b 100644
--- a/source/blender/editors/transform/transform.h
+++ b/source/blender/editors/transform/transform.h
@@ -102,7 +102,7 @@ typedef struct TransSnap {
* Get the transform distance between two points (used by Closest snap)
*
* \note Return value can be anything,
- * where the smallest absolute value defines whats closest.
+ * where the smallest absolute value defines what's closest.
*/
float (*distance)(struct TransInfo *t, const float p1[3], const float p2[3]);
@@ -662,10 +662,16 @@ typedef struct TransInfo {
short prop_mode;
+ /** Value taken as input, either through mouse coordinates or entered as a parameter. */
float values[4];
+
/** Offset applied ontop of modal input. */
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
+ * 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). */
@@ -764,7 +770,9 @@ enum {
/** Don't use mirror even if the data-block option is set. */
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,
/** To specify if we save back settings at the end. */
T_MODAL = 1 << 21,