diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-08-29 12:15:36 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-08-29 13:04:31 +0300 |
commit | 369cd8521b8782cb009cf583c5e71f9b0da36fc8 (patch) | |
tree | 55455e16a0109556c3dfbbbc18825eca13d86e27 /source/blender/editors/include | |
parent | 83ea224a7fa2261ded92b5a341c9237855148963 (diff) |
Manipulator: new cage2d manipulator
Adding alongside the existing one for now,
but it should eventually replace it.
Uses a matrix instead of (position + scale),
written so rotation can be done more easily.
Currently has a primitive handle for rotation, supports corner scaling.
Diffstat (limited to 'source/blender/editors/include')
-rw-r--r-- | source/blender/editors/include/ED_manipulator_library.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/editors/include/ED_manipulator_library.h b/source/blender/editors/include/ED_manipulator_library.h index 25566899319..f283973a144 100644 --- a/source/blender/editors/include/ED_manipulator_library.h +++ b/source/blender/editors/include/ED_manipulator_library.h @@ -34,6 +34,7 @@ void ED_manipulatortypes_arrow_2d(void); void ED_manipulatortypes_arrow_3d(void); void ED_manipulatortypes_cage_2d(void); +void ED_manipulatortypes_cage_2d_rotate(void); void ED_manipulatortypes_dial_3d(void); void ED_manipulatortypes_grab_3d(void); void ED_manipulatortypes_facemap_3d(void); @@ -103,6 +104,13 @@ enum { ED_MANIPULATOR_CAGE2D_PART_SCALE_MAX_X = 2, ED_MANIPULATOR_CAGE2D_PART_SCALE_MIN_Y = 3, ED_MANIPULATOR_CAGE2D_PART_SCALE_MAX_Y = 4, + /* Corners */ + ED_MANIPULATOR_CAGE2D_PART_SCALE_MIN_X_MIN_Y = 5, + ED_MANIPULATOR_CAGE2D_PART_SCALE_MIN_X_MAX_Y = 6, + ED_MANIPULATOR_CAGE2D_PART_SCALE_MAX_X_MIN_Y = 7, + ED_MANIPULATOR_CAGE2D_PART_SCALE_MAX_X_MAX_Y = 8, + + ED_MANIPULATOR_CAGE2D_PART_ROTATE = 9, }; /* -------------------------------------------------------------------- */ |