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:
authorCampbell Barton <ideasman42@gmail.com>2019-01-14 06:59:18 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-01-14 07:14:39 +0300
commit65b82e09d94e77f7d8fb079f24fe82aee8e2509e (patch)
tree3524bf14fef8df443f5c05a7bcd7731a4ba5525c /source/blender/editors/transform/transform.h
parent9c7adcfd8b58b01dba6dd3abd871fc82c71b5ad7 (diff)
Fix T57852: Mesh X Mirror option not working
D3869 by @lichtwerk w/ own edits
Diffstat (limited to 'source/blender/editors/transform/transform.h')
-rw-r--r--source/blender/editors/transform/transform.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/source/blender/editors/transform/transform.h b/source/blender/editors/transform/transform.h
index 115c06317f5..530c03d56f8 100644
--- a/source/blender/editors/transform/transform.h
+++ b/source/blender/editors/transform/transform.h
@@ -514,6 +514,16 @@ typedef struct TransDataContainer {
/** Center of transformation (in local-space), Calculated from #TransInfo.center_global. */
float center_local[3];
+ /**
+ * Mirror option
+ */
+ struct {
+ /* Currently for mesh X mirror only. */
+ int axis_flag;
+ /** Set to -1.0f or 1.0 when use_mirror is set. */
+ float sign;
+ } mirror;
+
TransCustomDataContainer custom;
} TransDataContainer;
@@ -618,8 +628,6 @@ typedef struct TransInfo {
short prop_mode;
- short mirror;
-
float values[4];
/** Offset applied ontop of modal input. */
float values_modal_offset[4];
@@ -710,7 +718,8 @@ enum {
/** Auto-ik is on. */
T_AUTOIK = 1 << 18,
- T_MIRROR = 1 << 19,
+ /** Don't use mirror even if the data-block option is set. */
+ T_NO_MIRROR = 1 << 19,
T_AUTOVALUES = 1 << 20,