Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/mesh/editmesh_extrude.c
| Show First 20 Lines • Show All 414 Lines • ▼ Show 20 Lines | mul_v3_v3fl( | ||||
| man->adjust_xyz_no[i]->matrix_basis[2], | man->adjust_xyz_no[i]->matrix_basis[2], | ||||
| (extrude_arrow_xyz_axis_scale * extrude_button_offset_scale) / extrude_button_scale); | (extrude_arrow_xyz_axis_scale * extrude_button_offset_scale) / extrude_button_scale); | ||||
| } | } | ||||
| } | } | ||||
| static bool manipulator_mesh_extrude_poll(const bContext *C, wmManipulatorGroupType *wgt) | static bool manipulator_mesh_extrude_poll(const bContext *C, wmManipulatorGroupType *wgt) | ||||
| { | { | ||||
| WorkSpace *workspace = CTX_wm_workspace(C); | WorkSpace *workspace = CTX_wm_workspace(C); | ||||
| if (!STREQ(workspace->tool.manipulator_group, "MESH_WGT_extrude") || | const bToolKey tkey = { .space_type = SPACE_VIEW3D, .mode = OB_MODE_EDIT}; | ||||
| bToolRef_Runtime *tref_rt = WM_toolsystem_runtime_find(workspace, &tkey); | |||||
| if ((tref_rt == NULL) || | |||||
| !STREQ(wgt->idname, tref_rt->manipulator_group) || | |||||
| !ED_operator_editmesh_view3d((bContext *)C)) | !ED_operator_editmesh_view3d((bContext *)C)) | ||||
| { | { | ||||
| WM_manipulator_group_type_unlink_delayed_ptr(wgt); | WM_manipulator_group_type_unlink_delayed_ptr(wgt); | ||||
| return false; | return false; | ||||
| } | } | ||||
| return true; | return true; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 728 Lines • Show Last 20 Lines | |||||