From 3bf36fa33bbebaa5631acd6744d73e72f3e3deda Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 14 Sep 2017 03:53:37 +1000 Subject: Manipulator: alternate cage2d draw style Doesn't rely on hovering, more consistent with 2D drawing tools. --- source/blender/editors/include/ED_manipulator_library.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (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 9a74a9f50ed..14e28e18ced 100644 --- a/source/blender/editors/include/ED_manipulator_library.h +++ b/source/blender/editors/include/ED_manipulator_library.h @@ -97,11 +97,17 @@ enum { ED_MANIPULATOR_CAGE2D_XFORM_FLAG_SCALE_SIGNED = (1 << 4), /* Negative scale allowed */ }; +/* draw_style */ +enum { + ED_MANIPULATOR_CAGE2D_STYLE_BOX = 0, + ED_MANIPULATOR_CAGE2D_STYLE_CIRCLE = 1, +}; + /* draw_options */ enum { /** Draw a central handle (instead of having the entire area selectable) * Needed for large rectangles that we don't want to swallow all events. */ - ED_MANIPULATOR_CAGE2D_STYLE_FLAG_XFORM_CENTER_HANDLE = (1 << 0), + ED_MANIPULATOR_CAGE2D_DRAW_FLAG_XFORM_CENTER_HANDLE = (1 << 0), }; /** #wmManipulator.highlight_part */ -- cgit v1.2.3