diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-12-13 11:33:49 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-12-13 14:43:48 +0300 |
commit | 82755f5137061bbd1b41096946881052a5dae802 (patch) | |
tree | 81bef3c7e5b6c55383c38f7d32301ceaff041a73 /source/blender/editors/include | |
parent | ec62413f803ee506633f0e52d1e52b0980c0ed0d (diff) |
Gizmo: add gizmos for UV transform translate/rotate/scale
Diffstat (limited to 'source/blender/editors/include')
-rw-r--r-- | source/blender/editors/include/ED_transform.h | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/source/blender/editors/include/ED_transform.h b/source/blender/editors/include/ED_transform.h index 0771f39f905..5f7730a94e3 100644 --- a/source/blender/editors/include/ED_transform.h +++ b/source/blender/editors/include/ED_transform.h @@ -168,10 +168,28 @@ void VIEW3D_GGT_xform_shear(struct wmGizmoGroupType *gzgt); /* *** transform_gizmo_extrude_3d.c *** */ void VIEW3D_GGT_xform_extrude(struct wmGizmoGroupType *gzgt); -bool ED_widgetgroup_gizmo2d_poll(const struct bContext *C, struct wmGizmoGroupType *gzgt); -void ED_widgetgroup_gizmo2d_setup(const struct bContext *C, struct wmGizmoGroup *gzgroup); -void ED_widgetgroup_gizmo2d_refresh(const struct bContext *C, struct wmGizmoGroup *gzgroup); -void ED_widgetgroup_gizmo2d_draw_prepare(const struct bContext *C, struct wmGizmoGroup *gzgroup); +/* Transform: Axis/Cage */ +bool ED_widgetgroup_gizmo2d_xform_poll(const struct bContext *C, struct wmGizmoGroupType *gzgt); +void ED_widgetgroup_gizmo2d_xform_setup(const struct bContext *C, struct wmGizmoGroup *gzgroup); +void ED_widgetgroup_gizmo2d_xform_setup_no_cage(const struct bContext *C, + struct wmGizmoGroup *gzgroup); +void ED_widgetgroup_gizmo2d_xform_refresh(const struct bContext *C, struct wmGizmoGroup *gzgroup); +void ED_widgetgroup_gizmo2d_xform_draw_prepare(const struct bContext *C, + struct wmGizmoGroup *gzgroup); + +/* Resize: Axis */ +bool ED_widgetgroup_gizmo2d_resize_poll(const struct bContext *C, struct wmGizmoGroupType *gzgt); +void ED_widgetgroup_gizmo2d_resize_setup(const struct bContext *C, struct wmGizmoGroup *gzgroup); +void ED_widgetgroup_gizmo2d_resize_refresh(const struct bContext *C, struct wmGizmoGroup *gzgroup); +void ED_widgetgroup_gizmo2d_resize_draw_prepare(const struct bContext *C, + struct wmGizmoGroup *gzgroup); + +/* Rotate: Axis */ +bool ED_widgetgroup_gizmo2d_rotate_poll(const struct bContext *C, struct wmGizmoGroupType *gzgt); +void ED_widgetgroup_gizmo2d_rotate_setup(const struct bContext *C, struct wmGizmoGroup *gzgroup); +void ED_widgetgroup_gizmo2d_rotate_refresh(const struct bContext *C, struct wmGizmoGroup *gzgroup); +void ED_widgetgroup_gizmo2d_rotate_draw_prepare(const struct bContext *C, + struct wmGizmoGroup *gzgroup); #define SNAP_INCREMENTAL_ANGLE DEG2RAD(5.0) |