|
Blender V4.3
|
#include <cctype>#include <cstddef>#include <cstring>#include "MEM_guardedalloc.h"#include "DNA_armature_types.h"#include "DNA_curve_types.h"#include "DNA_meta_types.h"#include "DNA_object_types.h"#include "DNA_scene_types.h"#include "DNA_screen_types.h"#include "DNA_sequence_types.h"#include "DNA_space_types.h"#include "DNA_view3d_types.h"#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 "BLI_string.h"#include "BLI_string_utils.hh"#include "BLI_utildefines.h"#include "BKE_action.hh"#include "BKE_armature.hh"#include "BKE_context.hh"#include "BKE_curve.hh"#include "BKE_editmesh.hh"#include "BKE_layer.hh"#include "BKE_report.hh"#include "BKE_scene.hh"#include "BLT_translation.hh"#include "ED_armature.hh"#include "ANIM_bone_collections.hh"#include "SEQ_select.hh"#include "transform.hh"#include "transform_orientations.hh"Go to the source code of this file.
Macros | |
| #define | SEL_F1 (1 << 0) |
| #define | SEL_F2 (1 << 1) |
| #define | SEL_F3 (1 << 2) |
Functions | |
| void | BIF_clearTransformOrientation (bContext *C) |
| static TransformOrientation * | findOrientationName (ListBase *lb, const char *name) |
| static bool | uniqueOrientationNameCheck (void *arg, const char *name) |
| static void | uniqueOrientationName (ListBase *lb, char *name) |
| static TransformOrientation * | createViewSpace (bContext *C, ReportList *, const char *name, const bool overwrite) |
| static TransformOrientation * | createObjectSpace (bContext *C, ReportList *, const char *name, const bool overwrite) |
| static TransformOrientation * | createBoneSpace (bContext *C, ReportList *reports, const char *name, const bool overwrite) |
| static TransformOrientation * | createCurveSpace (bContext *C, ReportList *reports, const char *name, const bool overwrite) |
| static TransformOrientation * | createMeshSpace (bContext *C, ReportList *reports, const char *name, const bool overwrite) |
| static bool | test_rotmode_euler (short rotmode) |
| static void | axis_angle_to_gimbal_axis (float gmat[3][3], const float axis[3], const float angle) |
| bool | gimbal_axis_pose (Object *ob, const bPoseChannel *pchan, float gmat[3][3]) |
| bool | gimbal_axis_object (Object *ob, float gmat[3][3]) |
| bool | transform_orientations_create_from_axis (float mat[3][3], const float x[3], const float y[3], const float z[3]) |
| bool | createSpaceNormal (float mat[3][3], const float normal[3]) |
| bool | createSpaceNormalTangent (float mat[3][3], const float normal[3], const float tangent[3]) |
| bool | BIF_createTransformOrientation (bContext *C, ReportList *reports, const char *name, const bool use_view, const bool activate, const bool overwrite) |
| TransformOrientation * | addMatrixSpace (bContext *C, float mat[3][3], const char *name, const bool overwrite) |
| void | BIF_removeTransformOrientation (bContext *C, TransformOrientation *target) |
| void | BIF_removeTransformOrientationIndex (bContext *C, int index) |
| void | BIF_selectTransformOrientation (bContext *C, TransformOrientation *target) |
| int | BIF_countTransformOrientation (const bContext *C) |
| void | applyTransformOrientation (const TransformOrientation *ts, float r_mat[3][3], char r_name[64]) |
| static int | armature_bone_transflags_update_recursive (bArmature *arm, ListBase *lb, const bool do_it) |
| void | ED_transform_calc_orientation_from_type (const bContext *C, float r_mat[3][3]) |
| static void | handle_armature_parent_orientation (Object *ob, float r_mat[3][3]) |
| static void | handle_object_parent_orientation (Object *ob, float r_mat[3][3]) |
| short | ED_transform_calc_orientation_from_type_ex (const Scene *scene, ViewLayer *view_layer, const View3D *v3d, const RegionView3D *rv3d, Object *ob, Object *obedit, const short orientation_index, const int pivot_point, float r_mat[3][3]) |
| short | transform_orientation_matrix_get (bContext *C, TransInfo *t, short orient_index, const float custom[3][3], float r_spacemtx[3][3]) |
| const char * | transform_orientations_spacename_get (TransInfo *t, const short orient_type) |
| void | transform_orientations_current_set (TransInfo *t, const short orient_index) |
| static uint | bm_mesh_elems_select_get_n__internal (BMesh *bm, BMElem **elems, const uint n, const BMIterType itype, const char htype) |
| static uint | bm_mesh_verts_select_get_n (BMesh *bm, BMVert **elems, const uint n) |
| static uint | bm_mesh_edges_select_get_n (BMesh *bm, BMEdge **elems, const uint n) |
| int | getTransformOrientation_ex (const Scene *scene, ViewLayer *view_layer, const View3D *v3d, Object *ob, Object *obedit, float normal[3], float plane[3], const short around) |
| int | getTransformOrientation (const bContext *C, float normal[3], float plane[3]) |
| void | ED_getTransformOrientationMatrix (const Scene *scene, ViewLayer *view_layer, const View3D *v3d, Object *ob, Object *obedit, const short around, float r_orientation_mat[3][3]) |
| #define SEL_F1 (1 << 0) |
Referenced by getTransformOrientation_ex().
| #define SEL_F2 (1 << 1) |
Referenced by getTransformOrientation_ex().
| #define SEL_F3 (1 << 2) |
Referenced by getTransformOrientation_ex().
| TransformOrientation * addMatrixSpace | ( | bContext * | C, |
| float | mat[3][3], | ||
| const char * | name, | ||
| const bool | overwrite ) |
Definition at line 475 of file transform_orientations.cc.
References BLI_addtail(), copy_m3_m3(), CTX_data_scene(), findOrientationName(), TransformOrientation::mat, MEM_callocN, TransformOrientation::name, STRNCPY, and uniqueOrientationName().
Referenced by createBoneSpace(), createCurveSpace(), createMeshSpace(), createObjectSpace(), and createViewSpace().
| void applyTransformOrientation | ( | const TransformOrientation * | ts, |
| float | r_mat[3][3], | ||
| char | r_name[64] ) |
Definition at line 537 of file transform_orientations.cc.
References BLI_strncpy(), copy_m3_m3(), TransformOrientation::mat, MAX_NAME, and TransformOrientation::name.
Referenced by ED_transform_calc_orientation_from_type_ex().
|
static |
Definition at line 548 of file transform_orientations.cc.
References ANIM_bone_in_visible_collection(), armature_bone_transflags_update_recursive(), BONE_SELECTED, BONE_TRANSFORM, and LISTBASE_FOREACH.
Referenced by armature_bone_transflags_update_recursive(), and getTransformOrientation_ex().
|
static |
Could move into BLI_math_rotation.h however this is only useful for display/editing purposes.
Definition at line 249 of file transform_orientations.cc.
References axis_angle_to_quat(), copy_v3_v3(), cross_v3_v3v3(), M_PI_2, mul_qt_v3(), normalize_m3(), and normalize_v3().
Referenced by gimbal_axis_object(), and gimbal_axis_pose().
| void BIF_clearTransformOrientation | ( | bContext * | C | ) |
Definition at line 56 of file transform_orientations.cc.
References ARRAY_SIZE, BLI_freelistN(), CTX_data_scene(), TransformOrientationSlot::index_custom, TransformOrientationSlot::type, V3D_ORIENT_CUSTOM, and V3D_ORIENT_GLOBAL.
Definition at line 530 of file transform_orientations.cc.
References BLI_listbase_count(), and CTX_data_scene().
Referenced by initTransInfo().
| bool BIF_createTransformOrientation | ( | bContext * | C, |
| ReportList * | reports, | ||
| const char * | name, | ||
| const bool | use_view, | ||
| const bool | activate, | ||
| const bool | overwrite ) |
Definition at line 435 of file transform_orientations.cc.
References activate(), BIF_selectTransformOrientation(), createBoneSpace(), createCurveSpace(), createMeshSpace(), createObjectSpace(), createViewSpace(), CTX_data_active_object(), CTX_data_edit_object(), Object::mode, OB_ARMATURE, OB_CURVES_LEGACY, OB_MESH, OB_MODE_POSE, and Object::type.
Referenced by create_orientation_exec().
| void BIF_removeTransformOrientation | ( | bContext * | C, |
| TransformOrientation * | target ) |
Definition at line 508 of file transform_orientations.cc.
References BKE_scene_transform_orientation_remove(), and CTX_data_scene().
Referenced by BIF_removeTransformOrientationIndex().
Definition at line 513 of file transform_orientations.cc.
References BIF_removeTransformOrientation(), BKE_scene_transform_orientation_find(), and CTX_data_scene().
Referenced by delete_orientation_exec().
| void BIF_selectTransformOrientation | ( | bContext * | C, |
| TransformOrientation * | target ) |
Definition at line 519 of file transform_orientations.cc.
References BKE_scene_transform_orientation_get_index(), BLI_assert, CTX_data_scene(), SCE_ORIENT_DEFAULT, and V3D_ORIENT_CUSTOM.
Referenced by BIF_createTransformOrientation().
Definition at line 883 of file transform_orientations.cc.
References bm, BM_EDGE, BM_EDGES_OF_MESH, bm_mesh_elems_select_get_n__internal(), min_ii(), and BMesh::totedgesel.
Referenced by getTransformOrientation_ex().
|
static |
Utility function - get first n, selected vert/edge/faces.
Definition at line 823 of file transform_orientations.cc.
References BLI_assert, BLI_listbase_is_empty(), bm, BM_EDGE, BM_EDGES_OF_MESH, BM_elem_flag_test, BM_ELEM_SELECT, BM_FACE, BM_FACES_OF_MESH, BM_ITER_MESH, BM_VERT, BM_VERTS_OF_MESH, ELEM, BMElem::head, BMHeader::htype, itype, LISTBASE_FOREACH_BACKWARD, and BMesh::selected.
Referenced by bm_mesh_edges_select_get_n(), and bm_mesh_verts_select_get_n().
Definition at line 878 of file transform_orientations.cc.
References bm, bm_mesh_elems_select_get_n__internal(), BM_VERT, BM_VERTS_OF_MESH, min_ii(), and BMesh::totvertsel.
Referenced by getTransformOrientation_ex().
|
static |
Definition at line 148 of file transform_orientations.cc.
References addMatrixSpace(), BKE_reports_prepend(), createSpaceNormalTangent(), DATA_, and getTransformOrientation().
Referenced by BIF_createTransformOrientation().
|
static |
Definition at line 170 of file transform_orientations.cc.
References addMatrixSpace(), BKE_reports_prepend(), createSpaceNormalTangent(), DATA_, and getTransformOrientation().
Referenced by BIF_createTransformOrientation().
|
static |
Definition at line 192 of file transform_orientations.cc.
References addMatrixSpace(), BKE_reports_prepend(), createSpaceNormal(), createSpaceNormalTangent(), DATA_, getTransformOrientation(), ORIENTATION_EDGE, ORIENTATION_FACE, and ORIENTATION_VERT.
Referenced by BIF_createTransformOrientation().
|
static |
Definition at line 122 of file transform_orientations.cc.
References addMatrixSpace(), copy_m3_m4(), CTX_data_active_base(), Object::id, ID::name, normalize_m3(), and Base::object.
Referenced by BIF_createTransformOrientation().
Definition at line 385 of file transform_orientations.cc.
References copy_v3_v3(), cross_v3_v3v3(), is_zero_v3(), normalize_m3(), and normalize_v3().
Referenced by createMeshSpace(), createTransMeshSkin(), createTransMeshVertCData(), ED_getTransformOrientationMatrix(), and VertsToTransData().
Definition at line 408 of file transform_orientations.cc.
References cross_v3_v3v3(), is_zero_v3(), negate_v3_v3(), normalize_v3(), and normalize_v3_v3().
Referenced by createBoneSpace(), createCurveSpace(), createMeshSpace(), createTransCurveVerts(), ED_getTransformOrientationMatrix(), and transform_convert_mesh_islands_calc().
|
static |
Definition at line 93 of file transform_orientations.cc.
References addMatrixSpace(), View3D::camera, copy_m3_m4(), CTX_wm_region_view3d(), CTX_wm_view3d(), DATA_, Object::id, ID::name, normalize_m3(), RegionView3D::persp, RV3D_CAMOB, and RegionView3D::viewinv.
Referenced by BIF_createTransformOrientation().
| void ED_getTransformOrientationMatrix | ( | const Scene * | scene, |
| ViewLayer * | view_layer, | ||
| const View3D * | v3d, | ||
| Object * | ob, | ||
| Object * | obedit, | ||
| const short | around, | ||
| float | r_orientation_mat[3][3] ) |
Definition at line 1445 of file transform_orientations.cc.
References BLI_assert, createSpaceNormal(), createSpaceNormalTangent(), getTransformOrientation_ex(), is_zero_v3(), ORIENTATION_EDGE, ORIENTATION_FACE, ORIENTATION_NONE, ORIENTATION_NORMAL, ORIENTATION_USE_PLANE, ORIENTATION_VERT, and unit_m3().
Referenced by ED_transform_calc_orientation_from_type_ex(), and view_axis_exec().
Definition at line 575 of file transform_orientations.cc.
References BKE_scene_orientation_get_index(), BKE_view_layer_active_object_get(), BKE_view_layer_synced_ensure(), CTX_data_edit_object(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_region(), CTX_wm_view3d(), ED_transform_calc_orientation_from_type_ex(), and SCE_ORIENT_DEFAULT.
Referenced by ED_view3d_cursor3d_position_rotation(), and gizmo_mesh_spin_init_refresh().
| short ED_transform_calc_orientation_from_type_ex | ( | const Scene * | scene, |
| ViewLayer * | view_layer, | ||
| const View3D * | v3d, | ||
| const RegionView3D * | rv3d, | ||
| Object * | ob, | ||
| Object * | obedit, | ||
| short | orientation_index, | ||
| int | pivot_point, | ||
| float | r_mat[3][3] ) |
r_mat to be orthogonal should use orthogonalize_m3.A non orthogonal matrix may be returned when:
Definition at line 623 of file transform_orientations.cc.
References applyTransformOrientation(), ATTR_FALLTHROUGH, BKE_pose_channel_active_if_bonecoll_visible(), BKE_scene_transform_orientation_find(), BLI_assert, copy_m3_m3(), copy_m3_m4(), ED_getTransformOrientationMatrix(), gimbal_axis_object(), gimbal_axis_pose(), handle_armature_parent_orientation(), handle_object_parent_orientation(), Object::mode, normalize_m3(), OB_MODE_POSE, blender::MatBase< T, NumCol, NumRow, Alignment >::ptr(), transform_orientations_create_from_axis(), unit_m3(), UNPACK3, V3D_ORIENT_CURSOR, V3D_ORIENT_CUSTOM, V3D_ORIENT_CUSTOM_MATRIX, V3D_ORIENT_GIMBAL, V3D_ORIENT_GLOBAL, V3D_ORIENT_LOCAL, V3D_ORIENT_NORMAL, V3D_ORIENT_PARENT, V3D_ORIENT_VIEW, and RegionView3D::viewinv.
Referenced by ED_transform_calc_gizmo_stats(), ED_transform_calc_orientation_from_type(), edbm_select_axis_exec(), knife_constrain_axis(), transform_mode_default_modal_orientation_set(), transform_orientation_matrix_get(), v3d_cursor_snap_update(), and view3d_ruler_item_mousemove().
|
static |
Definition at line 72 of file transform_orientations.cc.
References BLI_findstring(), and offsetof.
Referenced by addMatrixSpace(), and uniqueOrientationNameCheck().
Definition at line 1430 of file transform_orientations.cc.
References CTX_data_active_object(), CTX_data_edit_object(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_view3d(), getTransformOrientation_ex(), and V3D_AROUND_CENTER_BOUNDS.
Referenced by createBoneSpace(), createCurveSpace(), and createMeshSpace().
| int getTransformOrientation_ex | ( | const Scene * | scene, |
| ViewLayer * | view_layer, | ||
| const View3D * | v3d, | ||
| Object * | ob, | ||
| Object * | obedit, | ||
| float | normal[3], | ||
| float | plane[3], | ||
| const short | around ) |
Logic explained:
Definition at line 896 of file transform_orientations.cc.
References bArmature::act_edbone, add_v3_v3(), add_v3_v3v3(), ANIM_bonecoll_is_visible_editbone(), armature_bone_transflags_update_recursive(), BASE_SELECTED, Nurb::bezt, BKE_curve_editNurbs_get(), BKE_curve_nurb_vert_active_get(), BKE_editmesh_from_object(), BKE_nurb_bezt_calc_normal(), BKE_nurb_bezt_calc_plane(), BKE_nurb_bpoint_calc_normal(), BKE_nurb_bpoint_calc_plane(), BKE_nurb_bpoint_get_next(), BKE_nurb_bpoint_get_prev(), BKE_pose_channel_active_if_bonecoll_visible(), BKE_view_layer_base_find(), BKE_view_layer_synced_ensure(), BLI_assert, BMEditMesh::bm, BM_EDGE, BM_edge_calc_length_squared(), BM_edge_exists(), BM_edge_is_boundary(), BM_edge_ordered_verts(), BM_edge_other_vert(), BM_editselection_normal(), BM_editselection_plane(), BM_elem_flag_test, BM_ELEM_SELECT, BM_FACE, BM_face_calc_tangent_auto(), BM_FACES_OF_MESH, BM_ITER_MESH, BM_mesh_active_vert_get(), bm_mesh_edges_select_get_n(), bm_mesh_verts_select_get_n(), BM_select_history_active_get(), BM_VERT, BM_vert_edge_pair(), BM_vert_tri_calc_tangent_edge(), BM_VERTS_OF_MESH, bPoseChannel::bone, BONE_CONNECTED, BONE_ROOTSEL, BONE_SELECTED, BONE_TIPSEL, BONE_TRANSFORM, bArmature::bonebase, Nurb::bp, bPose::chanbase, BMVert::co, copy_m3_m4(), copy_v3_v3(), CU_BEZIER, CURVE_HANDLE_NONE, Object::data, dot_v3v3(), e, ED_armature_ebone_to_mat3(), bArmature::edbo, MetaBall::editelems, ELEM, BezTriple::f1, BPoint::f1, BezTriple::f2, BezTriple::f3, ListBase::first, Bone::flag, EditBone::flag, flag, MetaElem::flag, View3DOverlay::handle_display, BMEditSelection::htype, invert_m3_m3(), is_zero_v3(), BMEdge::l, l, MetaBall::lastelem, LIKELY, LISTBASE_FOREACH, Object::mode, mul_m3_v3(), mul_mat3_m4_v3(), negate_v3(), Nurb::next, BMFace::no, BMVert::no, normal_tri_v3(), normalize_v3(), OB_ARMATURE, OB_CURVES_LEGACY, OB_MBALL, OB_MESH, OB_MODE_ALL_PAINT, OB_MODE_PARTICLE_EDIT, OB_MODE_POSE, OB_SURF, ORIENTATION_EDGE, ORIENTATION_FACE, ORIENTATION_NONE, ORIENTATION_NORMAL, ORIENTATION_VERT, ortho_v3_v3(), View3D::overlay, EditBone::parent, Nurb::pntsu, Nurb::pntsv, Object::pose, bPoseChannel::pose_mat, project_plane_normalized_v3_v3v3(), project_v3_v3v3(), MetaElem::quat, quat_to_mat3(), result, SEL_F1, SEL_F2, SEL_F3, SELECT, sub_v3_v3(), sub_v3_v3v3(), BMesh::totedgesel, BMesh::totfacesel, BMesh::totvertsel, transpose_m3(), Nurb::type, Object::type, UNLIKELY, BMLoop::v, v, BMEdge::v1, BMEdge::v2, V3D_AROUND_ACTIVE, V3D_AROUND_LOCAL_ORIGINS, BezTriple::vec, BPoint::vec, and zero_v3().
Referenced by ED_getTransformOrientationMatrix(), and getTransformOrientation().
Definition at line 316 of file transform_orientations.cc.
References axis_angle_to_gimbal_axis(), copy_m3_m4(), eulO_to_gimbal_axis(), mul_m3_m3m3(), normalize_m3(), Object::parent, Object::rot, ROT_MODE_AXISANGLE, Object::rotAngle, Object::rotAxis, Object::rotmode, and test_rotmode_euler().
Referenced by ED_transform_calc_orientation_from_type_ex(), and ObjectToTransData().
| bool gimbal_axis_pose | ( | Object * | ob, |
| const bPoseChannel * | pchan, | ||
| float | gmat[3][3] ) |
Definition at line 278 of file transform_orientations.cc.
References Bone::arm_mat, axis_angle_to_gimbal_axis(), bPoseChannel::bone, BONE_HINGE, Bone::bone_mat, copy_m3_m4(), bPoseChannel::eul, eulO_to_gimbal_axis(), Bone::flag, mul_m3_m3m3(), normalize_m3(), bPoseChannel::parent, bPoseChannel::pose_mat, ROT_MODE_AXISANGLE, bPoseChannel::rotAngle, bPoseChannel::rotAxis, bPoseChannel::rotmode, and test_rotmode_euler().
Referenced by add_pose_transdata(), and ED_transform_calc_orientation_from_type_ex().
Definition at line 592 of file transform_orientations.cc.
References BKE_pose_channel_active(), mul_m3_m3_pre(), bPoseChannel::parent, bPoseChannel::pose_mat, transform_orientations_create_from_axis(), and UNPACK3.
Referenced by ED_transform_calc_orientation_from_type_ex().
Definition at line 611 of file transform_orientations.cc.
References Object::parent, transform_orientations_create_from_axis(), unit_m3(), and UNPACK3.
Referenced by ED_transform_calc_orientation_from_type_ex().
|
static |
Definition at line 241 of file transform_orientations.cc.
References ELEM, false, ROT_MODE_AXISANGLE, and ROT_MODE_QUAT.
Referenced by gimbal_axis_object(), and gimbal_axis_pose().
| short transform_orientation_matrix_get | ( | bContext * | C, |
| TransInfo * | t, | ||
| short | orient_index, | ||
| const float | custom[3][3], | ||
| float | r_spacemtx[3][3] ) |
Sets the matrix of the specified space orientation. If the matrix cannot be obtained, an orientation different from the one informed is returned.
Definition at line 725 of file transform_orientations.cc.
References TransInfo::around, axis_angle_to_mat3_single(), copy_m3_m3(), CTX_data_active_object(), CTX_data_edit_object(), CTX_PAINT_CURVE, CTX_SEQUENCER_IMAGE, ED_transform_calc_orientation_from_type_ex(), Object::mode, mul_m3_m4m3(), normalize_m3(), OB_MODE_ALL_WEIGHT_PAINT, TransInfo::options, TransInfo::region, ARegion::regiondata, ARegion::regiontype, RGN_TYPE_WINDOW, StripTransform::rotation, TransInfo::scene, SEQ_select_active_get(), SPACE_SEQ, SPACE_VIEW3D, TransInfo::spacetype, Sequence::strip, Strip::transform, transform_object_deform_pose_armature_get(), unit_m3(), V3D_ORIENT_CUSTOM_MATRIX, V3D_ORIENT_LOCAL, V3D_ORIENT_VIEW, TransInfo::view, TransInfo::view_layer, and RegionView3D::viewmat.
Referenced by initTransInfo().
| bool transform_orientations_create_from_axis | ( | float | mat[3][3], |
| const float | x[3], | ||
| const float | y[3], | ||
| const float | z[3] ) |
Those two fill in mat and return non-zero on success.
Definition at line 337 of file transform_orientations.cc.
References b, cross_v3_v3v3(), is_zero(), normalize_v3(), normalize_v3_v3(), project_plane_v3_v3v3(), unit_m3(), z(), and zero_m3().
Referenced by ED_transform_calc_orientation_from_type_ex(), handle_armature_parent_orientation(), handle_object_parent_orientation(), and ObjectToTransData().
| void transform_orientations_current_set | ( | TransInfo * | t, |
| const short | orient_index ) |
Definition at line 809 of file transform_orientations.cc.
References copy_m3_m3(), invert_m3_m3_safe_ortho(), TransInfo::matrix, TransInfo::orient, TransInfo::orient_curr, TransInfo::spacemtx, TransInfo::spacemtx_inv, TransInfo::spacename, STRNCPY, transform_orientations_spacename_get(), and TransInfo::type.
Referenced by initSelectConstraint(), initTransInfo(), stopConstraint(), transform_event_modal_constraint(), and transform_mode_default_modal_orientation_set().
| const char * transform_orientations_spacename_get | ( | TransInfo * | t, |
| const short | orient_type ) |
Definition at line 781 of file transform_orientations.cc.
References BKE_scene_transform_orientation_find(), BLI_assert, TransformOrientation::name, RPT_, TransInfo::scene, V3D_ORIENT_CURSOR, V3D_ORIENT_CUSTOM, V3D_ORIENT_CUSTOM_MATRIX, V3D_ORIENT_GIMBAL, V3D_ORIENT_GLOBAL, V3D_ORIENT_LOCAL, V3D_ORIENT_NORMAL, V3D_ORIENT_PARENT, and V3D_ORIENT_VIEW.
Referenced by setUserConstraint(), and transform_orientations_current_set().
|
static |
Definition at line 83 of file transform_orientations.cc.
References BLI_uniquename_cb(), BLT_I18NCONTEXT_ID_SCENE, CTX_DATA_, TransformOrientation::name, and uniqueOrientationNameCheck().
Referenced by addMatrixSpace().
|
static |
Definition at line 78 of file transform_orientations.cc.
References findOrientationName().
Referenced by uniqueOrientationName().