diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-01-09 05:56:45 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-01-09 08:42:24 +0300 |
commit | ac4057b95a5b20c4903308881193e291266f87db (patch) | |
tree | dd1910787eb8dcb9053dc7ee3dea8b33bd01b4ac /source/blender/editors/include/ED_transform.h | |
parent | 73098d2ca5c047542fcf6487ee946cb3b50e9683 (diff) |
Gizmo: use pivot center for UV gizmos
Diffstat (limited to 'source/blender/editors/include/ED_transform.h')
-rw-r--r-- | source/blender/editors/include/ED_transform.h | 28 |
1 files changed, 6 insertions, 22 deletions
diff --git a/source/blender/editors/include/ED_transform.h b/source/blender/editors/include/ED_transform.h index 29bac9df93a..d53ad7c4229 100644 --- a/source/blender/editors/include/ED_transform.h +++ b/source/blender/editors/include/ED_transform.h @@ -29,6 +29,7 @@ struct Object; struct bContext; struct wmKeyConfig; +struct wmMsgBus; struct wmOperatorType; void ED_keymap_transform(struct wmKeyConfig *keyconf); @@ -165,28 +166,11 @@ void VIEW3D_GGT_xform_shear(struct wmGizmoGroupType *gzgt); /* *** transform_gizmo_extrude_3d.c *** */ void VIEW3D_GGT_xform_extrude(struct wmGizmoGroupType *gzgt); -/* 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); +/* Generic 2D transform gizmo callback assignment. */ +void ED_widgetgroup_gizmo2d_xform_callbacks_set(struct wmGizmoGroupType *gzgt); +void ED_widgetgroup_gizmo2d_xform_no_cage_callbacks_set(struct wmGizmoGroupType *gzgt); +void ED_widgetgroup_gizmo2d_resize_callbacks_set(struct wmGizmoGroupType *gzgt); +void ED_widgetgroup_gizmo2d_rotate_callbacks_set(struct wmGizmoGroupType *gzgt); #define SNAP_INCREMENTAL_ANGLE DEG2RAD(5.0) |