Blender
V3.3
|
transform modes used by different operators. More...
Go to the source code of this file.
Classes | |
struct | TransDataGenericSlideVert |
Typedefs | |
typedef struct TransDataGenericSlideVert | TransDataGenericSlideVert |
transform modes used by different operators.
Definition in file transform_mode.h.
typedef struct TransDataGenericSlideVert TransDataGenericSlideVert |
Definition at line 421 of file transform_mode.c.
References BKE_constraint_typeinfo_from_type(), TransData::con, CON_APPLY, CONSTRAINT_DISABLE, CONSTRAINT_OFF, CONSTRAINT_SPACE_LOCAL, CONSTRAINT_SPACE_WORLD, CONSTRAINT_TYPE_SIZELIMIT, data, bConstraint::data, bConstraint::enforce, bConstraintTypeInfo::evaluate_constraint, TransData::ext, fabsf, bConstraint::flag, LIMIT_TRANSFORM, mat4_to_size(), bConstraintOb::matrix, TransData::mtx, mul_m4_m3m4(), mul_v3_v3(), bConstraint::next, NULL, bConstraint::ownspace, signf(), TransDataExtension::size, size_to_mat4(), TransData::smtx, t, TD_SINGLESIZE, and bConstraint::type.
Referenced by ElementMirror(), and ElementResize().
Definition at line 234 of file transform_mode.c.
References BKE_constraint_custom_object_space_init(), BKE_constraint_targets_for_solving_get(), BKE_constraint_typeinfo_from_type(), BLI_freelistN(), TransData::con, CONSTRAINT_DISABLE, CONSTRAINT_OFF, CONSTRAINT_SPACE_LOCAL, CONSTRAINT_SPACE_WORLD, CONSTRAINT_TYPE_DISTLIMIT, CONSTRAINT_TYPE_LOCLIMIT, copy_v3_v3(), data, bConstraint::data, bConstraint::enforce, bConstraintTypeInfo::evaluate_constraint, bConstraint::flag, float(), if(), LIMIT_TRANSFORM, LIMITDIST_TRANSFORM, bConstraintOb::matrix, TransData::mtx, mul_m4_m3m4(), bConstraint::next, NULL, bConstraint::ownspace, TransData::smtx, t, bConstraint::type, and unit_m4().
Referenced by applySnappingIndividual(), ElementMirror(), ElementResize(), ElementRotation_ex(), and transdata_elem_translate().
Definition at line 1131 of file transform_mode_edge_slide.c.
References Freestyle::a, add_v3_v3(), add_v3_v3v3(), usdtokens::b(), BMVert::co, copy_v3_v3(), EdgeSlideData::curr_side_unclamp, EdgeSlideData::curr_sv_index, TransDataEdgeSlideVert::dir_side, edgeSlideFirstGet(), EdgeSlideParams::flipped, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_COMP_F32, GPU_DEPTH_LESS_EQUAL, GPU_DEPTH_NONE, GPU_depth_test(), GPU_FETCH_FLOAT, GPU_line_width(), GPU_matrix_mul, GPU_matrix_pop(), GPU_matrix_push(), GPU_point_size(), GPU_PRIM_LINES, GPU_PRIM_POINTS, GPU_SHADER_3D_UNIFORM_COLOR, GPU_vertformat_attr_add(), immBegin(), immBeginAtMost(), immBindBuiltinProgram(), immEnd(), immUnbindProgram(), immUniformThemeColorShadeAlpha(), immVertex3fv(), immVertexFormat(), interp_line_v3_v3v3v3(), is_zero_v3(), mul_v3_fl(), negate_v3_v3(), NULL, EdgeSlideParams::perc, pos, EdgeSlideData::sv, t, T_ALT_TRANSFORM, TFM_EDGE_SLIDE, TH_EDGE_SELECT, TH_FACEDOT_SIZE, TH_OUTLINE_WIDTH, TH_SELECT, EdgeSlideData::totsv, TRANS_DATA_CONTAINER_FIRST_OK, UI_GetThemeValuef(), EdgeSlideParams::use_even, TransDataEdgeSlideVert::v_co_orig, and TransDataEdgeSlideVert::v_side.
Referenced by drawTransformView().
Definition at line 364 of file transform_mode_vert_slide.c.
References Freestyle::a, add_v3_v3(), usdtokens::b(), TransDataVertSlideVert::co_link_curr, TransDataVertSlideVert::co_link_orig_3d, TransDataVertSlideVert::co_orig_3d, VertSlideData::curr_sv_index, ED_view3d_calc_zfac(), ED_view3d_win_to_delta(), VertSlideParams::flipped, GPU_blend(), GPU_BLEND_ALPHA, GPU_COMP_F32, GPU_DEPTH_LESS_EQUAL, GPU_DEPTH_NONE, GPU_depth_test(), GPU_FETCH_FLOAT, GPU_line_width(), GPU_matrix_mul, GPU_matrix_pop(), GPU_matrix_push(), GPU_point_size(), GPU_PRIM_LINES, GPU_PRIM_POINTS, GPU_SHADER_3D_LINE_DASHED_UNIFORM_COLOR, GPU_SHADER_3D_UNIFORM_COLOR, GPU_vertformat_attr_add(), GPU_viewport_size_get_f(), immBegin(), immBindBuiltinProgram(), immEnd(), immUnbindProgram(), immUniform1f(), immUniform1i(), immUniform2f(), immUniformColor4f(), immUniformThemeColorShadeAlpha(), immVertex3fv(), immVertexFormat(), invert_m4_m4(), mul_mat3_m4_v3(), mul_v3_fl(), mul_v3_m4v3(), negate_v3_v3(), sub_v3_v3v3(), VertSlideData::sv, t, T_ALT_TRANSFORM, TFM_VERT_SLIDE, TH_EDGE_SELECT, TH_FACEDOT_SIZE, TH_OUTLINE_WIDTH, VertSlideData::totsv, TRANS_DATA_CONTAINER_FIRST_OK, UI_GetThemeValuef(), and VertSlideParams::use_even.
Referenced by drawTransformView().
void ElementResize | ( | const TransInfo * | t, |
const TransDataContainer * | tc, | ||
TransData * | td, | ||
const float | mat[3][3] | ||
) |
Definition at line 907 of file transform_mode.c.
References add_v3_v3(), add_v3_v3v3(), applyNumInput(), TransData::axismtx, center, TransDataContainer::center_local, CON_APPLY, constraintSizeLim(), constraintTransLim(), copy_m3_m3(), copy_v3_v3(), copy_v4_v4(), CTX_GPENCIL_STROKES, CTX_MOVIECLIP, CTX_OBJECT, CTX_POSE_BONE, ELEM, TransData::ext, fabs(), TransData::factor, interpf(), TransDataExtension::isize, TransData::ival, mat3_to_size(), max_ff(), TransData::mtx, mul_m3_m3m3(), mul_m3_v3(), mul_mat3_m4_v3(), mul_v3_fl(), bGPDstroke_Runtime::multi_frame_falloff, Object::obmat, TransDataContainer::poseobj, protectedSizeBits(), protectedTransBits(), TransData::protectflag, bGPDstroke::runtime, TransDataExtension::size, TransData::smtx, sub_v3_v3(), sub_v3_v3v3(), t, T_EDIT, T_POINTS, T_V3D_ALIGN, TD_INDIVIDUAL_SCALE, TD_SINGLESIZE, TransConvertType_Object, TransConvertType_ObjectTexSpace, TransConvertType_Pose, TransConvertType_Sculpt, transdata_check_local_center(), transform_snap_increment(), TransMat3ToSize(), and TransData::val.
Referenced by applyResize(), and element_resize_fn().
void ElementRotation | ( | const TransInfo * | t, |
const TransDataContainer * | tc, | ||
TransData * | td, | ||
const float | mat[3][3], | ||
short | around | ||
) |
Definition at line 791 of file transform_mode.c.
References center, TransDataContainer::center_local, ElementRotation_ex(), t, and transdata_check_local_center().
Referenced by applyAlign(), transdata_elem_bend(), transdata_elem_rotate(), and transdata_elem_trackball().
void ElementRotation_ex | ( | const TransInfo * | t, |
const TransDataContainer * | tc, | ||
TransData * | td, | ||
const float | mat[3][3], | ||
const float * | center | ||
) |
Applies values of rotation to td->loc
and td->ext->quat
based on a rotation matrix (mat) and a pivot (center).
Protected axis and other transform settings are taken into account.
HACK WARNING
This is some VERY ugly special case to deal with pose mode.
The problem is that mtx and smtx include each bone orientation.
That is needed to rotate each bone properly, HOWEVER, to calculate the translation component, we only need the actual armature object's matrix (and inverse). That is not all though. Once the proper translation has been computed, it has to be converted back into the bone's space.
Definition at line 542 of file transform_mode.c.
References add_eul_euleul(), add_v3_v3(), add_v3_v3v3(), axis_angle_to_quat(), center, constraintRotLim(), constraintTransLim(), copy_v3_v3(), CTX_GPENCIL_STROKES, CTX_POSE_BONE, TransDataExtension::dquat, TransDataExtension::drot, eulO_to_mat3(), TransData::ext, if(), TransDataContainer::imat3, interp_m3_m3m3(), invert_qt_qt_normalized(), TransDataExtension::iquat, TransDataExtension::irot, TransDataExtension::irotAngle, TransDataExtension::irotAxis, is_zero_v3(), is_zero_v4(), TransDataExtension::l_smtx, TransDataContainer::mat3, mat3_to_compatible_eulO(), mat3_to_quat(), TransData::mtx, mul_m3_m3m3(), mul_m3_series, mul_m3_v3(), mul_qt_qtqt(), bGPDstroke_Runtime::multi_frame_falloff, protectedAxisAngleBits(), protectedQuaternionBits(), protectedRotateBits(), protectedTransBits(), TransData::protectflag, TransDataExtension::quat, quat_to_axis_angle(), quat_to_mat3(), TransDataExtension::r_mtx, TransDataExtension::r_smtx, TransDataExtension::rot, ROT_MODE_AXISANGLE, ROT_MODE_QUAT, TransDataExtension::rotAngle, TransDataExtension::rotAxis, TransDataExtension::rotOrder, bGPDstroke::runtime, TransData::smtx, sub_eul_euleul(), sub_v3_v3(), sub_v3_v3v3(), t, T_POINTS, T_V3D_ALIGN, TD_NO_LOC, TD_PBONE_LOCAL_MTX_C, TD_PBONE_LOCAL_MTX_P, TD_USEQUAT, and unit_m3().
Referenced by ElementMirror(), ElementRotation(), and transdata_elem_translate().
Definition at line 816 of file transform_mode.c.
References BLI_snprintf(), BLI_snprintf_rlen(), CON_APPLY, hasNumInput(), NUM_STR_REP_LEN, outputNumInput(), str, t, T_2D_EDIT, T_PROP_EDIT_ALL, and TIP_.
Referenced by applyResize(), and applySkinResize().
Used by Transform Rotation and Transform Normal Rotation.
Definition at line 515 of file transform_mode.c.
References BLI_snprintf_rlen(), Freestyle::c, hasNumInput(), NUM_STR_REP_LEN, outputNumInput(), RAD2DEGF, str, t, T_PROP_EDIT_ALL, and TIP_.
Referenced by applyNormalRotation(), and applyRotation().
Definition at line 68 of file transform_mode_align.c.
References applyAlign(), initMouseInputMode(), INPUT_NONE, t, and T_NO_CONSTRAINT.
Referenced by transform_mode_init().
Definition at line 105 of file transform_mode_baketime.c.
References applyBakeTime(), B_UNIT_NONE, copy_v3_fl(), initMouseInputMode(), INPUT_NONE, and t.
Referenced by transform_mode_init().
Definition at line 328 of file transform_mode_bend.c.
References B_UNIT_LENGTH, B_UNIT_ROTATION, Bend(), calculateCenterCursor(), calculateCenterLocal(), copy_v3_fl(), copy_v3_v3(), cross_v3_v3v3(), data, ED_view3d_win_to_3d(), handleEventBend(), initMouseInputMode(), INPUT_ANGLE_SPRING, len_v3v3(), MEM_callocN, normalize_v3(), SNAP_INCREMENTAL_ANGLE, sub_v3_v3v3(), t, T_NO_CONSTRAINT, T_OVERRIDE_CENTER, TFM_BEND, UNPACK2, and USER_UNIT_ROT_RADIANS.
Referenced by transform_mode_init().
Definition at line 138 of file transform_mode_edge_bevelweight.c.
References applyBevelWeight(), B_UNIT_NONE, copy_v3_fl(), initMouseInputMode(), INPUT_SPRING_DELTA, t, T_NO_CONSTRAINT, T_NO_PROJECT, and TFM_BWEIGHT.
Referenced by transform_mode_init().
Definition at line 81 of file transform_mode_boneenvelope.c.
References applyBoneEnvelope(), B_UNIT_NONE, copy_v3_fl(), initMouseInputMode(), INPUT_SPRING, t, T_NO_CONSTRAINT, and T_NO_PROJECT.
Referenced by transform_mode_init().
Definition at line 75 of file transform_mode_boneroll.c.
References applyBoneRoll(), B_UNIT_ROTATION, copy_v3_fl(), DEG2RAD, initMouseInputMode(), INPUT_ANGLE, t, T_NO_CONSTRAINT, T_NO_PROJECT, TFM_BONE_ROLL, and USER_UNIT_ROT_RADIANS.
Referenced by transform_mode_init().
Definition at line 150 of file transform_mode_bbone_resize.c.
References applyBoneSize(), B_UNIT_NONE, copy_v3_fl(), initMouseInputMode(), INPUT_SPRING_FLIP, NUM_AFFECT_ALL, NUM_NULL_ONE, t, and TFM_BONESIZE.
Referenced by transform_mode_init().
Definition at line 78 of file transform_mode_curveshrinkfatten.c.
References applyCurveShrinkFatten(), B_UNIT_NONE, copy_v3_fl(), initMouseInputMode(), INPUT_SPRING, t, T_NO_CONSTRAINT, and TFM_CURVE_SHRINKFATTEN.
Referenced by transform_mode_init().
Definition at line 1565 of file transform_mode_edge_slide.c.
References initEdgeSlide_ex(), and t.
void initEdgeSlide_ex | ( | TransInfo * | t, |
bool | use_double_side, | ||
bool | use_even, | ||
bool | flipped, | ||
bool | use_clamp | ||
) |
Definition at line 1504 of file transform_mode_edge_slide.c.
References applyEdgeSlide(), B_UNIT_NONE, calcEdgeSlideCustomPoints(), copy_v3_fl(), createEdgeSlideVerts_double_side(), createEdgeSlideVerts_single_side(), edge_slide_snap_apply(), EdgeSlideParams::flipped, FOREACH_TRANS_DATA_CONTAINER, freeEdgeSlideVerts(), handleEventEdgeSlide(), initMouseInputMode(), INPUT_CUSTOM_RATIO_FLIP, MEM_callocN, EdgeSlideParams::perc, t, T_ALT_TRANSFORM, T_NO_CONSTRAINT, T_NO_PROJECT, TFM_EDGE_SLIDE, TRANS_CANCEL, transform_snap_distance_len_squared_fn(), and EdgeSlideParams::use_even.
Referenced by initEdgeSlide(), and transform_mode_init().
Definition at line 158 of file transform_mode_edge_crease.c.
References initCrease_ex(), t, and TFM_EDGE_CREASE.
Referenced by transform_mode_init().
Definition at line 90 of file transform_mode_gpopacity.c.
References applyGPOpacity(), B_UNIT_NONE, copy_v3_fl(), initMouseInputMode(), INPUT_SPRING, NUM_NO_ZERO, t, T_NO_CONSTRAINT, and TFM_GPENCIL_OPACITY.
Referenced by transform_mode_init().
Definition at line 92 of file transform_mode_gpshrinkfatten.c.
References applyGPShrinkFatten(), B_UNIT_NONE, copy_v3_fl(), initMouseInputMode(), INPUT_SPRING, NUM_NO_ZERO, t, T_NO_CONSTRAINT, and TFM_GPENCIL_SHRINKFATTEN.
Referenced by transform_mode_init().
Definition at line 106 of file transform_mode_maskshrinkfatten.c.
References applyMaskShrinkFatten(), B_UNIT_NONE, copy_v3_fl(), initMouseInputMode(), INPUT_SPRING, NUM_NO_ZERO, t, T_NO_CONSTRAINT, and TFM_MASK_SHRINKFATTEN.
Referenced by transform_mode_init().
Definition at line 218 of file transform_mode_mirror.c.
References applyMirror(), initMouseInputMode(), INPUT_NONE, t, and T_NULL_ONE.
Referenced by transform_mode_init().
Definition at line 110 of file transform_mode_edge_rotate_normal.c.
References applyNormalRotation(), B_UNIT_ROTATION, BKE_editmesh_ensure_autosmooth(), BKE_editmesh_from_object(), BKE_editmesh_lnorspace_update(), BMEditMesh::bm, bm, copy_v3_fl(), DEG2RAD, FOREACH_TRANS_DATA_CONTAINER, initMouseInputMode(), INPUT_ANGLE, storeCustomLNorValue(), t, TFM_NORMAL_ROTATION, transform_mode_default_modal_orientation_set(), USER_UNIT_ROT_RADIANS, and V3D_ORIENT_VIEW.
Referenced by transform_mode_init().
Definition at line 172 of file transform_mode_push_pull.c.
References applyPushPull(), B_UNIT_LENGTH, copy_v3_fl(), initMouseInputMode(), INPUT_VERTICAL_ABSOLUTE, t, and TFM_PUSHPULL.
Referenced by transform_mode_init().
Definition at line 286 of file transform_mode_resize.c.
References applyResize(), ApplySnapResize(), B_UNIT_NONE, copy_m3_m4(), copy_v3_fl(), initMouseInputMode(), INPUT_CUSTOM_RATIO, INPUT_SPRING_FLIP, is_zero_v2(), is_zero_v3(), mul_v3_m3v3(), normalize_v2(), NUM_AFFECT_ALL, NUM_NO_ZERO, NUM_NULL_ONE, project_v2_v2v2(), ResizeBetween(), setCustomPoints(), t, T_EDIT, T_NULL_ONE, TFM_RESIZE, transform_mode_default_modal_orientation_set(), and V3D_ORIENT_GLOBAL.
Referenced by initShrinkFatten(), and transform_mode_init().
Definition at line 345 of file transform_mode_rotate.c.
References applyRotation(), applyRotationMatrix(), ApplySnapRotation(), B_UNIT_ROTATION, BKE_report(), copy_v3_fl(), DEG2RAD, initMouseInputMode(), INPUT_ANGLE, RotationBetween(), RPT_ERROR, SPACE_ACTION, t, T_2D_EDIT, T_NO_CONSTRAINT, TFM_ROTATION, TRANS_CANCEL, transform_mode_default_modal_orientation_set(), USER_UNIT_ROT_RADIANS, and V3D_ORIENT_VIEW.
Referenced by transform_mode_init().
Definition at line 110 of file transform_mode_edge_seq_slide.c.
References applySeqSlide(), B_UNIT_NONE, copy_v3_fl(), floorf, initMouseInputMode(), INPUT_VECTOR, t, TFM_MODAL_TRANSLATE, transform_snap_sequencer_apply_translate(), and WM_modalkeymap_find_propvalue().
Referenced by transform_mode_init().
Definition at line 250 of file transform_mode_shear.c.
References applyShear(), B_UNIT_NONE, copy_v3_fl(), handleEventShear(), initShear_mouseInputMode(), t, T_NO_CONSTRAINT, TFM_SHEAR, transform_mode_default_modal_orientation_set(), and V3D_ORIENT_VIEW.
Referenced by transform_mode_init().
Definition at line 171 of file transform_mode_shrink_fatten.c.
References applyShrinkFatten(), B_UNIT_LENGTH, copy_v3_fl(), initMouseInputMode(), initResize(), INPUT_VERTICAL_ABSOLUTE, OB_MESH, shrinkfatten_handleEvent(), t, T_EDIT, T_NO_CONSTRAINT, TFM_MODAL_RESIZE, TFM_SHRINKFATTEN, WM_modalkeymap_find_propvalue(), and zero_v3().
Referenced by transform_mode_init().
Definition at line 136 of file transform_mode_skin_resize.c.
References applySkinResize(), B_UNIT_NONE, copy_v3_fl(), initMouseInputMode(), INPUT_SPRING_FLIP, NUM_AFFECT_ALL, NUM_NO_ZERO, NUM_NULL_ONE, t, T_EDIT, T_NULL_ONE, and TFM_SKIN_RESIZE.
Referenced by transform_mode_init().
Definition at line 79 of file transform_mode_tilt.c.
References applyTilt(), B_UNIT_ROTATION, copy_v3_fl(), DEG2RAD, initMouseInputMode(), INPUT_ANGLE, t, T_NO_CONSTRAINT, T_NO_PROJECT, TFM_TILT, and USER_UNIT_ROT_RADIANS.
Referenced by transform_mode_init().
Definition at line 96 of file transform_mode_timescale.c.
References applyTimeScale(), B_UNIT_NONE, center, copy_v3_fl(), ELEM, initMouseInput(), initMouseInputMode(), INPUT_SPRING_FLIP, NUM_NULL_ONE, projectFloatView(), SPACE_ACTION, SPACE_NLA, t, T_NULL_ONE, T_OVERRIDE_CENTER, TFM_TIME_SCALE, and TRANS_CANCEL.
Referenced by transform_mode_init().
Definition at line 150 of file transform_mode_timeslide.c.
References applyTimeSlide(), B_UNIT_NONE, BKE_nla_tweakedit_remap(), copy_v3_fl(), SpaceAction::flag, float(), FOREACH_TRANS_DATA_CONTAINER, initMouseInputMode(), INPUT_NONE, max, MEM_mallocN, min, NLATIME_CONVERT_MAP, NULL, PEFRA, PSFRA, SACTION_MOVING, scene, SPACE_ACTION, SPACE_NLA, t, TFM_TIME_SLIDE, TRANS_CANCEL, and TransData::val.
Referenced by transform_mode_init().
Definition at line 121 of file transform_mode_timetranslate.c.
References applyTimeTranslate(), B_UNIT_NONE, copy_v3_fl(), ELEM, initMouseInputMode(), INPUT_NONE, SPACE_ACTION, SPACE_SEQ, t, and TRANS_CANCEL.
Referenced by transform_mode_init().
Definition at line 239 of file transform_mode_tosphere.c.
References applyToSphere(), B_UNIT_NONE, copy_v3_fl(), data, initMouseInputMode(), INPUT_HORIZONTAL_RATIO, MEM_callocN, NUM_NO_NEGATIVE, NUM_NULL_ONE, t, T_NO_CONSTRAINT, TFM_TOSPHERE, and to_sphere_radius_update().
Referenced by transform_mode_init().
Definition at line 189 of file transform_mode_trackball.c.
References applyTrackball(), applyTrackballMatrix(), B_UNIT_ROTATION, copy_v3_fl(), DEG2RAD, initMouseInputMode(), INPUT_TRACKBALL, t, T_NO_CONSTRAINT, TFM_TRACKBALL, and USER_UNIT_ROT_RADIANS.
Referenced by transform_mode_init().
Definition at line 577 of file transform_mode_translate.c.
Referenced by transform_mode_init().
Definition at line 163 of file transform_mode_edge_crease.c.
References initCrease_ex(), t, and TFM_VERT_CREASE.
Referenced by transform_mode_init().
Definition at line 675 of file transform_mode_vert_slide.c.
References initVertSlide_ex(), and t.
Definition at line 618 of file transform_mode_vert_slide.c.
References applyVertSlide(), B_UNIT_NONE, calcVertSlideCustomPoints(), calcVertSlideMouseActiveEdges(), calcVertSlideMouseActiveVert(), copy_v3_fl(), createVertSlideVerts(), VertSlideParams::flipped, FOREACH_TRANS_DATA_CONTAINER, freeVertSlideVerts(), handleEventVertSlide(), initMouseInputMode(), INPUT_CUSTOM_RATIO, MEM_callocN, VertSlideParams::perc, t, T_ALT_TRANSFORM, T_NO_CONSTRAINT, T_NO_PROJECT, TFM_VERT_SLIDE, TRANS_CANCEL, transform_snap_distance_len_squared_fn(), VertSlideParams::use_even, and vert_slide_snap_apply().
Referenced by initVertSlide(), and transform_mode_init().
Definition at line 215 of file transform_mode.c.
References OB_LOCK_SCALEX, OB_LOCK_SCALEY, OB_LOCK_SCALEZ, and size().
Referenced by ElementMirror(), and ElementResize().
Definition at line 80 of file transform_mode.c.
References OB_LOCK_LOCX, OB_LOCK_LOCY, and OB_LOCK_LOCZ.
Referenced by ElementMirror(), ElementResize(), ElementRotation_ex(), and transdata_elem_translate().
Definition at line 55 of file transform_mode.c.
References CTX_MASK, CTX_MOVIECLIP, CTX_OBJECT, CTX_PAINT_CURVE, CTX_POSE_BONE, CTX_SEQUENCER_IMAGE, ELEM, OB_ARMATURE, OB_CURVES_LEGACY, OB_GPENCIL, OB_MBALL, OB_MESH, SPACE_GRAPH, t, and V3D_AROUND_LOCAL_ORIGINS.
Referenced by applyShear(), applyToSphere(), clip_uv_transform_resize(), ElementMirror(), ElementResize(), ElementRotation(), and to_sphere_radius_update().
When in modal and not set, initializes a default orientation for the mode.
Definition at line 1223 of file transform_mode.c.
References BLI_assert, ED_transform_calc_orientation_from_type_ex(), ELEM, NULL, RGN_TYPE_WINDOW, SPACE_VIEW3D, t, T_MODAL, transform_orientations_current_set(), type, V3D_AROUND_CENTER_BOUNDS, V3D_ORIENT_GLOBAL, and V3D_ORIENT_VIEW.
Referenced by initNormalRotation(), initResize(), initRotation(), and initShear().
Definition at line 1576 of file transform_mode_edge_slide.c.
References EdgeSlideData::curr_sv_index, edge_slide_data_init_mval(), edge_slide_pair_project(), edge_slide_projmat_get(), edgeSlideFirstGet(), FOREACH_TRANS_DATA_CONTAINER, EdgeSlideData::mval_end, EdgeSlideData::mval_start, setCustomPoints(), sub_v3_v3v3(), EdgeSlideData::sv, and t.
Referenced by transform_input_update().
void transform_mode_init | ( | TransInfo * | t, |
struct wmOperator * | op, | ||
int | mode | ||
) |
Definition at line 1064 of file transform_mode.c.
References BLI_assert, ELEM, wmOperator::idname, initAlign(), initBakeTime(), initBend(), initBevelWeight(), initBoneEnvelope(), initBoneRoll(), initBoneSize(), initCurveShrinkFatten(), initEdgeSlide_ex(), initEgdeCrease(), initGPOpacity(), initGPShrinkFatten(), initMaskShrinkFatten(), initMirror(), initNormalRotation(), initPushPull(), initResize(), initRotation(), initSeqSlide(), initShear(), initShrinkFatten(), initSkinResize(), initTilt(), initTimeScale(), initTimeSlide(), initTimeTranslate(), initToSphere(), initTrackball(), initTranslation(), initVertCrease(), initVertSlide_ex(), wmOperator::ptr, RNA_boolean_get(), RNA_property_float_get_array(), RNA_struct_find_property(), SPACE_GRAPH, SPACE_NLA, STREQ, t, TFM_ALIGN, TFM_BAKE_TIME, TFM_BEND, TFM_BONE_ENVELOPE, TFM_BONE_ENVELOPE_DIST, TFM_BONE_ROLL, TFM_BONESIZE, TFM_BWEIGHT, TFM_CURVE_SHRINKFATTEN, TFM_EDGE_CREASE, TFM_EDGE_SLIDE, TFM_GPENCIL_OPACITY, TFM_GPENCIL_SHRINKFATTEN, TFM_MASK_SHRINKFATTEN, TFM_MIRROR, TFM_NORMAL_ROTATION, TFM_PUSHPULL, TFM_RESIZE, TFM_ROTATION, TFM_SEQ_SLIDE, TFM_SHEAR, TFM_SHRINKFATTEN, TFM_SKIN_RESIZE, TFM_TILT, TFM_TIME_DUPLICATE, TFM_TIME_EXTEND, TFM_TIME_SCALE, TFM_TIME_SLIDE, TFM_TIME_TRANSLATE, TFM_TOSPHERE, TFM_TRACKBALL, TFM_TRANSLATION, TFM_VERT_CREASE, TFM_VERT_SLIDE, TransConvertType_Mesh, transform_convert_mesh_customdatacorrect_init(), and zero_v3().
Referenced by initTransform(), and transformEvent().
bool transform_mode_is_changeable | ( | int | mode | ) |
Informs if the mode can be switched during modal.
Definition at line 65 of file transform_mode.c.
References ELEM, TFM_EDGE_SLIDE, TFM_RESIZE, TFM_ROTATION, TFM_TRACKBALL, TFM_TRANSLATION, and TFM_VERT_SLIDE.
Referenced by transform_modal_item_poll(), and transformEvent().
Definition at line 38 of file transform_mode.c.
References ARM_ENVELOPE, BLI_assert, C, CTX_data_active_object(), Object::data, bArmature::drawtype, OB_ARMATURE, TFM_BONE_ENVELOPE_DIST, TFM_BONESIZE, TFM_RESIZE, and Object::type.
Referenced by initTransform().
Definition at line 686 of file transform_mode_vert_slide.c.
References ED_view3d_ob_project_mat_get(), FOREACH_TRANS_DATA_CONTAINER, VertSlideData::proj_mat, SPACE_VIEW3D, t, and vert_slide_update_input().
Referenced by transform_input_update().