diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-02-21 13:52:56 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-02-21 13:59:15 +0300 |
commit | 1bfbfa281046b9d600a1604794fce3aadd7f5cf7 (patch) | |
tree | f2d818a9ab7ebb4a5d08efa2cddd51a29c83751d /source/blender/editors/transform/transform.h | |
parent | 510810c72d11ccb3b1b4b69e8f3e3a3189877862 (diff) |
Transform: remove constraints from the redo panel
Constraint options had confusing behavior:
- When non were pressed, the orientation was ignored.
- When any were pressed, the orientation was used,
but only unconstrained axed could be adjusted.
Now constraining is only used for modal execution
so there is no need to show these in the interface.
When an orientation is selected, the XYZ values always transform
using that space.
Note, transform system should be refactored to support different
orientations w/o having to use constraints.
Addresses T57204
Diffstat (limited to 'source/blender/editors/transform/transform.h')
-rw-r--r-- | source/blender/editors/transform/transform.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/editors/transform/transform.h b/source/blender/editors/transform/transform.h index 2c97974721e..881de792391 100644 --- a/source/blender/editors/transform/transform.h +++ b/source/blender/editors/transform/transform.h @@ -764,7 +764,16 @@ enum { /* transinfo->con->mode */ enum { + /** + * TODO(campbell): this has two meanings: + * - Constraint axes. + * - Transform values are evaluated in different orientation. + * + * We should split out this second meaning into another flag + * because transform logic becomes hard to follow when we're + * only want to support an alternate orientation. */ CON_APPLY = 1 << 0, + /** These are only used for modal execution. */ CON_AXIS0 = 1 << 1, CON_AXIS1 = 1 << 2, CON_AXIS2 = 1 << 3, |