From 369cd8521b8782cb009cf583c5e71f9b0da36fc8 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 29 Aug 2017 19:15:36 +1000 Subject: 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. --- source/blender/editors/include/ED_manipulator_library.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source/blender/editors/include') 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, }; /* -------------------------------------------------------------------- */ -- cgit v1.2.3