|
Blender V5.0
|
#include "BLI_listbase.h"#include "BLI_math_geom.h"#include "BLI_math_matrix.h"#include "BLI_math_rotation.h"#include "BLI_math_vector.h"#include "BKE_context.hh"#include "BKE_scene.hh"#include "BKE_screen.hh"#include "RNA_access.hh"#include "RNA_define.hh"#include "RNA_enum_types.hh"#include "WM_api.hh"#include "WM_message.hh"#include "WM_toolsystem.hh"#include "WM_types.hh"#include "ED_gizmo_utils.hh"#include "ED_screen.hh"#include "ED_view3d.hh"#include "UI_resources.hh"#include "MEM_guardedalloc.h"#include "mesh_intern.hh"#include "ED_transform.hh"#include "ED_gizmo_library.hh"#include "ED_undo.hh"Go to the source code of this file.
Classes | |
| struct | GizmoGroupData_SpinInit |
| struct | GizmoGroupData_SpinRedo |
Macros | |
| #define | ORTHO_AXIS_OFFSET 2 |
Variables | |
| static const float | dial_angle_partial = M_PI_2 |
| static const float | dial_angle_partial_margin = 0.92f |
Spin Tool Gizmo | |
| #define | USE_DIAL_HOVER |
| #define | INIT_SCALE_BASE 2.3f |
| #define | INIT_SCALE_BUTTON 0.15f |
| static const uchar | shape_plus [] |
| static void | gizmo_mesh_spin_init_setup (const bContext *, wmGizmoGroup *gzgroup) |
| static void | gizmo_mesh_spin_init_refresh (const bContext *C, wmGizmoGroup *gzgroup) |
| static void | gizmo_mesh_spin_init_refresh_axis_orientation (wmGizmoGroup *gzgroup, int axis_index, const float axis_vec[3], const float axis_tan[3]) |
| static void | gizmo_mesh_spin_init_draw_prepare (const bContext *C, wmGizmoGroup *gzgroup) |
| static void | gizmo_mesh_spin_init_invoke_prepare (const bContext *, wmGizmoGroup *gzgroup, wmGizmo *gz, const wmEvent *) |
| static void | gizmo_mesh_spin_init_message_subscribe (const bContext *C, wmGizmoGroup *gzgroup, wmMsgBus *mbus) |
| void | MESH_GGT_spin (wmGizmoGroupType *gzgt) |
| #define INIT_SCALE_BASE 2.3f |
Definition at line 94 of file editmesh_extrude_spin_gizmo.cc.
Referenced by gizmo_mesh_spin_init_refresh(), and gizmo_mesh_spin_init_setup().
| #define INIT_SCALE_BUTTON 0.15f |
Definition at line 95 of file editmesh_extrude_spin_gizmo.cc.
Referenced by gizmo_mesh_spin_init_refresh(), and gizmo_mesh_spin_init_setup().
| #define ORTHO_AXIS_OFFSET 2 |
Definition at line 56 of file editmesh_extrude_spin_gizmo.cc.
Referenced by gizmo_mesh_spin_init_refresh().
| #define USE_ANGLE_Z_ORIENT |
Orient the dial so the 'arc' starts where the mouse cursor is, this is simply to keep the gizmo displaying where the cursor starts. It's not needed for practical functionality.
Definition at line 480 of file editmesh_extrude_spin_gizmo.cc.
| #define USE_DIAL_HOVER |
Definition at line 92 of file editmesh_extrude_spin_gizmo.cc.
|
static |
Definition at line 225 of file editmesh_extrude_spin_gizmo.cc.
References BKE_scene_orientation_slot_get(), C, copy_m3_m4(), CTX_data_scene(), CTX_wm_region_view3d(), wmGizmoGroup::customdata, GizmoGroupData_SpinInit::data, dial_angle_partial, dial_angle_partial_margin, equals_m3m3(), gizmo_mesh_spin_init_refresh(), gizmo_mesh_spin_init_refresh_axis_orientation(), GizmoGroupData_SpinInit::gizmos, GizmoGroupData_SpinInit::gzgt_axis_prop, i, GizmoGroupData_SpinInit::icon_button, M_PI, GizmoGroupData_SpinInit::prev, ptr, wmGizmo::ptr, RNA_float_set(), RNA_property_enum_get(), SCE_ORIENT_ROTATE, wmGizmo::state, TransformOrientationSlot::type, wmGizmoGroup::type, V3D_ORIENT_VIEW, RegionView3D::viewinv, GizmoGroupData_SpinInit::viewinv_m3, WM_GIZMO_HIDDEN, WM_gizmo_set_flag(), WM_GIZMO_STATE_HIGHLIGHT, WM_toolsystem_ref_from_context(), WM_toolsystem_ref_properties_ensure_from_gizmo_group, and GizmoGroupData_SpinInit::xyz_view.
Referenced by MESH_GGT_spin().
|
static |
Definition at line 287 of file editmesh_extrude_spin_gizmo.cc.
References wmGizmoGroup::customdata, ELEM, GizmoGroupData_SpinInit::gizmos, i, GizmoGroupData_SpinInit::icon_button, GizmoGroupData_SpinInit::invoke, GizmoGroupData_SpinInit::ortho_axis_active, and UNPACK2.
Referenced by MESH_GGT_spin().
|
static |
Definition at line 418 of file editmesh_extrude_spin_gizmo.cc.
References C, CTX_data_scene(), CTX_wm_region(), Scene::cursor, wmGizmoGroup::customdata, GizmoGroupData_SpinInit::data, GizmoGroupData_SpinInit::gzgt_axis_prop, Scene::id, wmMsgSubscribeValue::notify, wmMsgSubscribeValue::owner, params, wmGizmoGroup::parent_gzmap, RNA_pointer_create_discrete(), wmGizmoGroupType::srna, wmGizmoGroup::type, wmMsgSubscribeValue::user_data, WM_gizmo_do_msg_notify_tag_refresh(), WM_msg_subscribe_rna(), and WM_msg_subscribe_rna_params().
Referenced by MESH_GGT_spin().
|
static |
Definition at line 303 of file editmesh_extrude_spin_gizmo.cc.
References add_v3_v3(), ARRAY_SIZE, axis_angle_to_mat3(), BKE_editmesh_from_object(), bm, BMEditMesh::bm, BM_elem_flag_test, BM_ELEM_HIDDEN, BM_ELEM_SELECT, BM_ITER_MESH, BM_VERTS_OF_MESH, C, blender::ed::transform::calc_orientation_from_type(), BMVert::co, copy_m3_m4(), copy_v3_v3(), CTX_data_edit_object(), CTX_data_scene(), Scene::cursor, wmGizmoGroup::customdata, GizmoGroupData_SpinInit::data, dial_angle_partial, ED_view3d_context_rv3d(), gizmo_mesh_spin_init_refresh_axis_orientation(), GizmoGroupData_SpinInit::gizmos, GizmoGroupData_SpinInit::gzgt_axis_prop, i, GizmoGroupData_SpinInit::icon_button, INIT_SCALE_BASE, INIT_SCALE_BUTTON, is_zero_v3(), View3DCursor::location, wmGizmo::matrix_offset, mul_m4_v3(), mul_v3_fl(), mul_v3_m3v3(), mul_v3_v3fl(), normalize_v3(), GizmoGroupData_SpinInit::orient_mat, ORTHO_AXIS_OFFSET, GizmoGroupData_SpinInit::prev, project_plane_normalized_v3_v3v3(), ptr, RNA_property_enum_get(), sub_v3_v3v3(), wmGizmoGroup::type, RegionView3D::viewinv, GizmoGroupData_SpinInit::viewinv_m3, WM_GIZMO_HIDDEN, WM_gizmo_set_flag(), WM_gizmo_set_matrix_location(), WM_toolsystem_ref_from_context(), WM_toolsystem_ref_properties_ensure_from_gizmo_group, and GizmoGroupData_SpinInit::xyz_view.
Referenced by gizmo_mesh_spin_init_draw_prepare(), and MESH_GGT_spin().
|
static |
Definition at line 188 of file editmesh_extrude_spin_gizmo.cc.
References copy_v3_v3(), wmGizmoGroup::customdata, GizmoGroupData_SpinInit::data, GizmoGroupData_SpinInit::gizmos, GizmoGroupData_SpinInit::icon_button, negate_v3_v3(), GizmoGroupData_SpinInit::ot_spin, ptr, RNA_float_set_array(), WM_gizmo_operator_set(), WM_gizmo_set_matrix_rotation_from_yz_axis(), WM_gizmo_set_matrix_rotation_from_z_axis(), and GizmoGroupData_SpinInit::xyz_view.
Referenced by gizmo_mesh_spin_init_draw_prepare(), and gizmo_mesh_spin_init_refresh().
|
static |
Definition at line 102 of file editmesh_extrude_spin_gizmo.cc.
References ARRAY_SIZE, wmGizmo::color, copy_v3_fl(), wmGizmoGroup::customdata, GizmoGroupData_SpinInit::data, dial_angle_partial, dial_angle_partial_margin, ED_GIZMO_BUTTON_SHOW_BACKDROP, ED_GIZMO_DIAL_DRAW_FLAG_CLIP, wmGizmo::flag, GizmoGroupData_SpinInit::gizmos, GizmoGroupData_SpinInit::gzgt_axis_prop, i, GizmoGroupData_SpinInit::icon_button, INIT_SCALE_BASE, INIT_SCALE_BUTTON, M_PI, MEM_callocN(), GizmoGroupData_SpinInit::ot_spin, wmGizmo::ptr, RNA_enum_set(), RNA_float_set(), RNA_property_string_set_bytes(), RNA_struct_find_property(), RNA_struct_type_find_property(), shape_plus, wmGizmoGroupType::srna, TH_AXIS_X, TH_GIZMO_PRIMARY, wmGizmoGroup::type, UI_GetThemeColor3fv(), WM_GIZMO_DRAW_OFFSET_SCALE, WM_GIZMO_DRAW_VALUE, WM_GIZMO_HIDDEN, WM_GIZMO_HIDDEN_SELECT, WM_gizmo_new_ptr(), WM_GIZMO_OPERATOR_TOOL_INIT, WM_gizmo_set_color(), WM_gizmo_set_color_highlight(), WM_gizmo_set_flag(), WM_gizmo_set_line_width(), WM_gizmo_set_scale(), WM_gizmotype_find(), WM_operatortype_find(), and GizmoGroupData_SpinInit::xyz_view.
Referenced by MESH_GGT_spin().
|
static |
Definition at line 1021 of file editmesh_extrude_spin_gizmo.cc.
References GizmoGroupData_SpinRedo::context, wmGizmoGroup::customdata, GizmoGroupData_SpinRedo::data, ED_view3d_context_rv3d(), gizmo_mesh_spin_redo_update_from_op(), wmGizmoGroup::gizmos, LISTBASE_FOREACH, wmOperator::next, normalize_v3(), GizmoGroupData_SpinRedo::op, GizmoGroupData_SpinRedo::orient_mat, project_plane_normalized_v3_v3v3(), GizmoGroupData_SpinRedo::rotate_view, GizmoGroupData_SpinRedo::translate_c, RegionView3D::viewinv, WM_gizmo_set_matrix_rotation_from_yz_axis(), WM_gizmo_set_matrix_rotation_from_z_axis(), WM_GIZMO_STATE_MODAL, and WM_operator_last_redo().
Referenced by MESH_GGT_spin_redo().
|
static |
Definition at line 794 of file editmesh_extrude_spin_gizmo.cc.
References GizmoGroupData_SpinRedo::angle_z, C, CTX_wm_window(), wmGizmoGroup::customdata, wmWindow::eventstate, GizmoGroupData_SpinRedo::is_init, wmGizmoGroup::parent_gzmap, and WM_gizmo_modal_set_from_setup().
Referenced by gizmo_mesh_spin_redo_setup().
|
static |
Definition at line 784 of file editmesh_extrude_spin_gizmo.cc.
References C, ED_gizmo_poll_or_unlink_delayed_from_operator(), and ED_gizmo_poll_or_unlink_delayed_from_tool_ex().
Referenced by MESH_GGT_spin_redo().
|
static |
Definition at line 807 of file editmesh_extrude_spin_gizmo.cc.
References wmWindow::active, bScreen::active_region, GizmoGroupData_SpinRedo::angle_z, C, wmGizmo::color, wmGizmo::color_hi, GizmoGroupData_SpinRedo::context, copy_m3_m3(), copy_v3_fl(), copy_v3_v3(), CTX_wm_region(), CTX_wm_view3d(), CTX_wm_window(), wmGizmoGroup::customdata, GizmoGroupData_SpinInit::data, GizmoGroupData_SpinRedo::data, ED_GIZMO_ARROW_STYLE_NORMAL, ED_GIZMO_DIAL_DRAW_FLAG_ANGLE_MIRROR, ED_GIZMO_DIAL_DRAW_FLAG_ANGLE_START_Y, ED_GIZMO_DIAL_DRAW_FLAG_ANGLE_VALUE, ED_GIZMO_DIAL_DRAW_FLAG_CLIP, ED_GIZMO_DIAL_DRAW_FLAG_FILL, ED_GIZMO_MOVE_STYLE_RING_2D, ED_view3d_win_to_3d_int(), ED_view3d_win_to_3d_on_plane_int(), wmWindow::eventstate, gizmo_mesh_spin_redo_modal_from_setup(), gizmo_mesh_spin_redo_update_from_op(), gizmo_mesh_spin_redo_update_orient_axis(), gizmo_spin_prop_angle_get(), gizmo_spin_prop_angle_set(), gizmo_spin_prop_axis_angle_get(), gizmo_spin_prop_axis_angle_set(), gizmo_spin_prop_depth_get(), gizmo_spin_prop_depth_set(), gizmo_spin_prop_translate_get(), gizmo_spin_prop_translate_set(), GizmoGroupData_SpinInit::gizmos, i, invert_m3_m3(), GizmoGroupData_SpinInit::invoke, is_zero_v3(), M_PI, wmGizmo::matrix_basis, MEM_callocN(), mul_m3_v3(), normalize_v3(), GizmoGroupData_SpinRedo::op, GizmoGroupData_SpinRedo::orient_axis_relative, GizmoGroupData_SpinInit::orient_mat, GizmoGroupData_SpinRedo::orient_mat, GizmoGroupData_SpinInit::ortho_axis_active, GizmoGroupData_SpinRedo::ot, ot, params, plane_from_point_normal_v3(), GizmoGroupData_SpinRedo::prop_angle, GizmoGroupData_SpinRedo::prop_axis_co, GizmoGroupData_SpinRedo::prop_axis_no, wmGizmo::ptr, wmOperator::ptr, RNA_boolean_set(), RNA_enum_set(), RNA_float_set(), RNA_property_float_get_array(), RNA_struct_type_find_property(), GizmoGroupData_SpinRedo::rotate_view, GizmoGroupData_SpinRedo::rotate_xy, ARegion::runtime, sub_v3_v3v3(), TH_AXIS_X, TH_GIZMO_PRIMARY, GizmoGroupData_SpinRedo::translate_c, GizmoGroupData_SpinRedo::translate_xy, wmOperator::type, UI_GetThemeColor3fv(), unit_m3(), UNLIKELY, ARegion::winrct, WM_GIZMO_DRAW_VALUE, WM_gizmo_new_ptr(), WM_gizmo_set_flag(), WM_gizmo_set_line_width(), WM_gizmo_set_scale(), WM_gizmo_target_property_def_func(), WM_gizmomap_group_find(), WM_gizmotype_find(), WM_operator_last_redo(), WM_operatortype_find(), WM_window_get_active_screen(), rcti::xmin, GizmoGroupData_SpinInit::xyz_view, rcti::ymin, and zero_v4().
Referenced by MESH_GGT_spin_redo().
|
static |
Definition at line 557 of file editmesh_extrude_spin_gizmo.cc.
References GizmoGroupData_SpinRedo::angle_z, copy_v3_v3(), GizmoGroupData_SpinRedo::data, equals_v3v3(), gizmo_mesh_spin_redo_update_orient_axis(), i, mul_v3_m3v3(), normalize_v3(), GizmoGroupData_SpinRedo::op, GizmoGroupData_SpinRedo::orient_axis_relative, GizmoGroupData_SpinRedo::orient_mat, GizmoGroupData_SpinRedo::plane_co, GizmoGroupData_SpinRedo::plane_no, GizmoGroupData_SpinRedo::prev, project_plane_normalized_v3_v3v3(), GizmoGroupData_SpinRedo::prop_axis_co, GizmoGroupData_SpinRedo::prop_axis_no, wmOperator::ptr, RNA_property_float_get_array(), GizmoGroupData_SpinRedo::rotate_view, GizmoGroupData_SpinRedo::rotate_xy, GizmoGroupData_SpinRedo::translate_xy, UNLIKELY, WM_gizmo_set_matrix_location(), WM_gizmo_set_matrix_rotation_from_yz_axis(), and WM_gizmo_set_matrix_rotation_from_z_axis().
Referenced by gizmo_mesh_spin_redo_draw_prepare(), and gizmo_mesh_spin_redo_setup().
|
static |
Definition at line 547 of file editmesh_extrude_spin_gizmo.cc.
References copy_v3_v3(), GizmoGroupData_SpinRedo::data, mul_m3_m3m3(), GizmoGroupData_SpinRedo::orient_mat, and rotation_between_vecs_to_mat3().
Referenced by gizmo_mesh_spin_redo_setup(), and gizmo_mesh_spin_redo_update_from_op().
|
static |
XXX. calling redo from property updates is not great. This is needed because changing the RNA doesn't cause a redo and we're not using operator UI which does just this.
Definition at line 532 of file editmesh_extrude_spin_gizmo.cc.
References GizmoGroupData_SpinRedo::angle_z, GizmoGroupData_SpinRedo::context, GizmoGroupData_SpinRedo::data, ED_undo_operator_repeat(), GizmoGroupData_SpinRedo::is_init, GizmoGroupData_SpinRedo::op, wmGizmo::ptr, RNA_property_unset(), RNA_struct_find_property(), and WM_operator_last_redo().
Referenced by gizmo_spin_prop_angle_set(), gizmo_spin_prop_axis_angle_set(), gizmo_spin_prop_depth_set(), and gizmo_spin_prop_translate_set().
|
static |
Definition at line 757 of file editmesh_extrude_spin_gizmo.cc.
References wmGizmoPropertyType::array_length, BLI_assert, wmGizmoGroup::customdata, GizmoGroupData_SpinRedo::data, GizmoGroupData_SpinRedo::op, wmGizmo::parent_gzgroup, GizmoGroupData_SpinRedo::prop_angle, wmOperator::ptr, RNA_property_float_get(), wmGizmoProperty::type, and UNUSED_VARS_NDEBUG.
Referenced by gizmo_mesh_spin_redo_setup().
|
static |
Definition at line 769 of file editmesh_extrude_spin_gizmo.cc.
References wmGizmoPropertyType::array_length, BLI_assert, wmGizmoGroup::customdata, GizmoGroupData_SpinRedo::data, gizmo_spin_exec(), GizmoGroupData_SpinRedo::op, wmGizmo::parent_gzgroup, GizmoGroupData_SpinRedo::prop_angle, wmOperator::ptr, RNA_property_float_set(), wmGizmoProperty::type, and UNUSED_VARS_NDEBUG.
Referenced by gizmo_mesh_spin_redo_setup().
|
static |
Definition at line 685 of file editmesh_extrude_spin_gizmo.cc.
References angle(), angle_signed_on_axis_v3v3_v3(), wmGizmoPropertyType::array_length, BLI_assert, wmGizmoGroup::customdata, GizmoGroupData_SpinRedo::data, is_zero_v3(), wmGizmo::matrix_basis, normalize_v3(), GizmoGroupData_SpinRedo::op, ortho_v3_v3(), wmGizmo::parent_gzgroup, project_plane_normalized_v3_v3v3(), GizmoGroupData_SpinRedo::prop_axis_no, wmOperator::ptr, RNA_property_float_get_array(), wmGizmoProperty::type, and UNUSED_VARS_NDEBUG.
Referenced by gizmo_mesh_spin_redo_setup().
|
static |
Definition at line 717 of file editmesh_extrude_spin_gizmo.cc.
References angle(), angle_compat_rad(), angle_signed_on_axis_v3v3_v3(), wmGizmoPropertyType::array_length, axis_angle_normalized_to_mat3(), BLI_assert, wmGizmoGroup::customdata, GizmoGroupData_SpinRedo::data, gizmo_spin_exec(), is_zero_v3(), wmGizmo::matrix_basis, mul_m3_v3(), normalize_v3(), GizmoGroupData_SpinRedo::op, ortho_v3_v3(), wmGizmo::parent_gzgroup, project_plane_normalized_v3_v3v3(), GizmoGroupData_SpinRedo::prop_axis_no, wmOperator::ptr, RNA_property_float_get_array(), RNA_property_float_set_array(), wmGizmoProperty::type, and UNUSED_VARS_NDEBUG.
Referenced by gizmo_mesh_spin_redo_setup().
|
static |
Definition at line 609 of file editmesh_extrude_spin_gizmo.cc.
References wmGizmoPropertyType::array_length, BLI_assert, wmGizmoGroup::customdata, GizmoGroupData_SpinRedo::data, dot_v3v3(), wmGizmo::matrix_basis, GizmoGroupData_SpinRedo::op, wmGizmo::parent_gzgroup, GizmoGroupData_SpinRedo::prop_axis_co, wmOperator::ptr, RNA_property_float_get_array(), wmGizmoProperty::type, and UNUSED_VARS_NDEBUG.
Referenced by gizmo_mesh_spin_redo_setup().
|
static |
Definition at line 626 of file editmesh_extrude_spin_gizmo.cc.
References wmGizmoPropertyType::array_length, BLI_assert, closest_to_plane_normalized_v3(), wmGizmoGroup::customdata, GizmoGroupData_SpinRedo::data, dot_v3v3(), gizmo_spin_exec(), wmGizmo::matrix_basis, normalize_v3_v3(), GizmoGroupData_SpinRedo::op, wmGizmo::parent_gzgroup, GizmoGroupData_SpinRedo::prop_axis_co, wmOperator::ptr, RNA_property_float_get_array(), RNA_property_float_set_array(), wmGizmoProperty::type, and UNUSED_VARS_NDEBUG.
Referenced by gizmo_mesh_spin_redo_setup().
|
static |
Definition at line 653 of file editmesh_extrude_spin_gizmo.cc.
References wmGizmoPropertyType::array_length, BLI_assert, wmGizmoGroup::customdata, GizmoGroupData_SpinRedo::data, GizmoGroupData_SpinRedo::op, wmGizmo::parent_gzgroup, GizmoGroupData_SpinRedo::prop_axis_co, wmOperator::ptr, RNA_property_float_get_array(), wmGizmoProperty::type, and UNUSED_VARS_NDEBUG.
Referenced by gizmo_mesh_spin_redo_setup().
|
static |
Definition at line 668 of file editmesh_extrude_spin_gizmo.cc.
References wmGizmoPropertyType::array_length, BLI_assert, wmGizmoGroup::customdata, GizmoGroupData_SpinRedo::data, gizmo_spin_exec(), GizmoGroupData_SpinRedo::op, wmGizmo::parent_gzgroup, GizmoGroupData_SpinRedo::prop_axis_co, wmOperator::ptr, RNA_property_float_set_array(), wmGizmoProperty::type, and UNUSED_VARS_NDEBUG.
Referenced by gizmo_mesh_spin_redo_setup().
| void MESH_GGT_spin | ( | wmGizmoGroupType * | gzgt | ) |
Definition at line 443 of file editmesh_extrude_spin_gizmo.cc.
References wmGizmoGroupType::draw_prepare, ED_gizmo_poll_or_unlink_delayed_from_tool(), wmGizmoGroupType::flag, gizmo_mesh_spin_init_draw_prepare(), gizmo_mesh_spin_init_invoke_prepare(), gizmo_mesh_spin_init_message_subscribe(), gizmo_mesh_spin_init_refresh(), gizmo_mesh_spin_init_setup(), wmGizmoGroupType::gzmap_params, wmGizmoGroupType::idname, wmGizmoGroupType::invoke_prepare, wmGizmoGroupType::message_subscribe, wmGizmoGroupType::name, wmGizmoGroupType::poll, wmGizmoGroupType::refresh, wmGizmoMapType_Params::regionid, RGN_TYPE_WINDOW, RNA_def_enum_flag(), rna_enum_axis_flag_xyz_items, wmGizmoGroupType::setup, SPACE_VIEW3D, wmGizmoMapType_Params::spaceid, wmGizmoGroupType::srna, WM_GIZMOGROUPTYPE_3D, and WM_GIZMOGROUPTYPE_TOOL_FALLBACK_KEYMAP.
Referenced by MESH_OT_spin().
| void MESH_GGT_spin_redo | ( | wmGizmoGroupType * | gzgt | ) |
Definition at line 1056 of file editmesh_extrude_spin_gizmo.cc.
References wmGizmoGroupType::draw_prepare, wmGizmoGroupType::flag, gizmo_mesh_spin_redo_draw_prepare(), gizmo_mesh_spin_redo_poll(), gizmo_mesh_spin_redo_setup(), wmGizmoGroupType::gzmap_params, wmGizmoGroupType::idname, wmGizmoGroupType::name, wmGizmoGroupType::poll, wmGizmoMapType_Params::regionid, RGN_TYPE_WINDOW, wmGizmoGroupType::setup, SPACE_VIEW3D, wmGizmoMapType_Params::spaceid, WM_GIZMOGROUPTYPE_3D, and WM_GIZMOGROUPTYPE_TOOL_FALLBACK_KEYMAP.
Referenced by MESH_OT_spin().
Orient the handles towards the selection (can be slow with high-poly mesh!).
Definition at line 53 of file editmesh_extrude_spin_gizmo.cc.
Referenced by gizmo_mesh_spin_init_draw_prepare(), gizmo_mesh_spin_init_refresh(), and gizmo_mesh_spin_init_setup().
|
static |
Definition at line 54 of file editmesh_extrude_spin_gizmo.cc.
Referenced by gizmo_mesh_spin_init_draw_prepare(), and gizmo_mesh_spin_init_setup().
|
static |
Definition at line 97 of file editmesh_extrude_spin_gizmo.cc.
Referenced by gizmo_mesh_spin_init_setup().