|
Blender
V2.93
|
#include <float.h>#include "PIL_time.h"#include "DNA_windowmanager_types.h"#include "BLI_blenlib.h"#include "BLI_math.h"#include "GPU_immediate.h"#include "GPU_state.h"#include "BKE_context.h"#include "BKE_editmesh.h"#include "BKE_layer.h"#include "BKE_object.h"#include "BKE_scene.h"#include "RNA_access.h"#include "SEQ_sequencer.h"#include "SEQ_time.h"#include "WM_types.h"#include "ED_gizmo_library.h"#include "ED_markers.h"#include "ED_node.h"#include "ED_transform_snap_object_context.h"#include "ED_uvedit.h"#include "UI_resources.h"#include "UI_view2d.h"#include "MEM_guardedalloc.h"#include "transform.h"#include "transform_convert.h"#include "transform_snap.h"Go to the source code of this file.
Functions | |
Prototypes | |
| static void | setSnappingCallback (TransInfo *t) |
| static void | CalcSnapGeometry (TransInfo *t, float *vec) |
| static void | TargetSnapMedian (TransInfo *t) |
| static void | TargetSnapCenter (TransInfo *t) |
| static void | TargetSnapClosest (TransInfo *t) |
| static void | TargetSnapActive (TransInfo *t) |
Implementations | |
| static bool | snapNodeTest (View2D *v2d, bNode *node, eSnapSelect snap_select) |
| static NodeBorder | snapNodeBorder (int snap_node_mode) |
| static bool | snap_use_backface_culling (const TransInfo *t) |
| bool | validSnap (const TransInfo *t) |
| bool | activeSnap (const TransInfo *t) |
| bool | transformModeUseSnap (const TransInfo *t) |
| static bool | doForceIncrementSnap (const TransInfo *t) |
| void | drawSnapping (const struct bContext *C, TransInfo *t) |
| eRedrawFlag | handleSnapping (TransInfo *t, const wmEvent *event) |
| void | applyProject (TransInfo *t) |
| void | applyGridAbsolute (TransInfo *t) |
| void | applySnapping (TransInfo *t, float *vec) |
| void | resetSnapping (TransInfo *t) |
| bool | usingSnappingNormal (const TransInfo *t) |
| bool | validSnappingNormal (const TransInfo *t) |
| static bool | bm_edge_is_snap_target (BMEdge *e, void *UNUSED(user_data)) |
| static bool | bm_face_is_snap_target (BMFace *f, void *UNUSED(user_data)) |
| static void | initSnappingMode (TransInfo *t) |
| void | initSnapping (TransInfo *t, wmOperator *op) |
| void | freeSnapping (TransInfo *t) |
| void | addSnapPoint (TransInfo *t) |
| eRedrawFlag | updateSelectedSnapPoint (TransInfo *t) |
| void | removeSnapPoint (TransInfo *t) |
| void | getSnapPoint (const TransInfo *t, float vec[3]) |
Calc Snap (Generic) | |
| static void | CalcSnapGeometry (TransInfo *t, float *UNUSED(vec)) |
Target | |
| static void | snap_target_median_impl (TransInfo *t, float r_median[3]) |
| static void | snap_target_grid_ensure (TransInfo *t) |
| static void | TargetSnapOffset (TransInfo *t, TransData *td) |
Snap Objects | |
| short | snapObjectsTransform (TransInfo *t, const float mval[2], float *dist_px, float r_loc[3], float r_no[3]) |
Peeling | |
| bool | peelObjectsTransform (TransInfo *t, const float mval[2], const bool use_peel_object, float r_loc[3], float r_no[3], float *r_thickness) |
snap Nodes | |
| static bool | snapNode (ToolSettings *ts, SpaceNode *UNUSED(snode), ARegion *region, bNode *node, const int mval[2], float r_loc[2], float *r_dist_px, char *r_node_border) |
| static bool | snapNodes (ToolSettings *ts, SpaceNode *snode, ARegion *region, const int mval[2], eSnapSelect snap_select, float r_loc[2], float *r_dist_px, char *r_node_border) |
| bool | snapNodesTransform (TransInfo *t, const int mval[2], float r_loc[2], float *r_dist_px, char *r_node_border) |
snap Frames | |
| void | snapFrameTransform (TransInfo *t, const eAnimEdit_AutoSnap autosnap, const bool is_frame_value, const float delta, float *r_val) |
| void | snapSequenceBounds (TransInfo *t, const int mval[2]) |
| static void | snap_grid_apply (TransInfo *t, const int max_index, const float grid_dist, const float loc[3], float r_out[3]) |
| bool | transform_snap_grid (TransInfo *t, float *val) |
| static void | snap_increment_apply_ex (TransInfo *UNUSED(t), const int max_index, const float increment_val, const float aspect[3], const float loc[3], float r_out[3]) |
| static void | snap_increment_apply (TransInfo *t, int max_index, const float increment_dist, float *r_val) |
| bool | transform_snap_increment_ex (TransInfo *t, bool use_local_space, float *r_val) |
| bool | transform_snap_increment (TransInfo *t, float *r_val) |
Generic callbacks | |
| float | transform_snap_distance_len_squared_fn (TransInfo *UNUSED(t), const float p1[3], const float p2[3]) |
| bool activeSnap | ( | const TransInfo * | t | ) |
Definition at line 130 of file transform_snap.c.
References MOD_SNAP, MOD_SNAP_INVERT, and t.
Referenced by applyAxisConstraintVec(), applyGridAbsolute(), applyProject(), applyRotation(), applySnapping(), applyTranslation(), applyTranslationValue(), drawDial3d(), drawSnapping(), transform_snap_grid(), and transform_snap_increment_ex().
| void addSnapPoint | ( | TransInfo * | t | ) |
Definition at line 737 of file transform_snap.c.
References BLI_addtail(), TransSnapPoint::co, copy_v3_v3(), MEM_callocN, MULTI_POINTS, POINT_INIT, SPACE_VIEW3D, and t.
Referenced by transformEvent().
| void applyGridAbsolute | ( | TransInfo * | t | ) |
Definition at line 393 of file transform_snap.c.
References activeSnap(), add_v3_v3(), BKE_object_eval_transform_all(), copy_v3_v3(), CTX_OBJECT, TransData::factor, FOREACH_TRANS_DATA_CONTAINER, if(), MOD_PRECISION, mul_m3_v3(), mul_m4_v3(), mul_v3_fl(), mul_v3_v3fl(), TransData::ob, Object::obmat, SCE_SNAP_MODE_GRID, SCE_SNAP_MODE_INCREMENT, TransData::smtx, sub_v3_v3v3(), t, T_PROP_EDIT, and TD_SKIP.
Referenced by flushTransNodes().
| void applyProject | ( | TransInfo * | t | ) |
Definition at line 300 of file transform_snap.c.
References activeSnap(), add_v3_v3(), TransData::axismtx, BKE_object_eval_transform_all(), constraintTransLim(), copy_v3_v3(), CTX_OBJECT, doForceIncrementSnap(), ED_transform_snap_object_project_view3d(), ED_view3d_project_float_global(), TransData::factor, FOREACH_TRANS_DATA_CONTAINER, mul_m3_v3(), mul_m4_v3(), NULL, TransData::ob, Object::obmat, rotation_between_vecs_to_mat3(), SCE_SNAP_MODE_FACE, TransData::smtx, sub_v3_v3v3(), t, T_NO_PROJECT, T_PROP_EDIT, TD_SKIP, transform_data_ext_rotate(), V3D_PROJ_RET_OK, and V3D_PROJ_TEST_NOP.
Referenced by recalcData_curve(), recalcData_edit_armature(), recalcData_lattice(), recalcData_mesh(), recalcData_obedit(), recalcData_objects(), recalcData_particles(), and recalcData_texspace().
Definition at line 443 of file transform_snap.c.
References activeSnap(), doForceIncrementSnap(), PIL_check_seconds_timer(), SCE_SNAP_MODE_FACE, SCE_SNAP_MODE_GRID, SCE_SNAP_MODE_INCREMENT, SNAP_FORCED, t, and validSnap().
Referenced by applyEdgeSlide(), applyNormalRotation(), applyResize(), applyRotation(), applySkinResize(), applyTranslation(), and applyVertSlide().
|
static |
Definition at line 512 of file transform_snap.c.
References BM_elem_flag_test, BM_ELEM_HIDDEN, BM_ELEM_SELECT, and e.
Referenced by initSnappingMode().
|
static |
Definition at line 522 of file transform_snap.c.
References BM_elem_flag_test, BM_ELEM_HIDDEN, BM_ELEM_SELECT, BM_FACE_FIRST_LOOP, BMLoop::next, and BMLoop::v.
Referenced by initSnappingMode().
Definition at line 838 of file transform_snap.c.
References BKE_view_layer_array_from_objects_in_edit_mode_unique_data_with_uvs, copy_v2_v2(), copy_v3_v3(), ED_uvedit_nearest_uv_multi(), MEM_freeN, NULL, OB_MESH, peelObjectsTransform(), POINT_INIT, SCE_SNAP_MODE_EDGE, SCE_SNAP_MODE_EDGE_MIDPOINT, SCE_SNAP_MODE_EDGE_PERPENDICULAR, SCE_SNAP_MODE_FACE, SCE_SNAP_MODE_NODE_X, SCE_SNAP_MODE_NODE_Y, SCE_SNAP_MODE_VERTEX, SCE_SNAP_MODE_VOLUME, SCE_SNAP_PEEL_OBJECT, SNAP_MIN_DISTANCE, snapNodesTransform(), snapObjectsTransform(), SPACE_IMAGE, SPACE_NODE, SPACE_VIEW3D, t, UI_view2d_region_to_view(), and zero_v3().
Referenced by setSnappingCallback().
|
static |
Definition at line 158 of file transform_snap.c.
References t, and transformModeUseSnap().
Referenced by applyProject(), applySnapping(), snap_increment_apply(), and transform_snap_increment_ex().
Definition at line 163 of file transform_snap.c.
References activeSnap(), BLI_listbase_is_empty(), C, TransSnapPoint::co, col, copy_m4_m4(), CTX_wm_region(), CTX_wm_region_view3d(), ED_gizmotypes_snap_3d_draw_util(), ED_node_draw_snap(), ED_view3d_pixel_size(), 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_SHADER_2D_UNIFORM_COLOR, GPU_SHADER_3D_UNIFORM_COLOR, GPU_vertformat_attr_add(), imm_drawcircball(), immBindBuiltinProgram(), immUnbindProgram(), immUniformColor4ubv(), immVertexFormat(), LISTBASE_FOREACH, TransSnapPoint::next, normal, NULL, POINT_INIT, pos, SCE_SNAP_MODE_EDGE_PERPENDICULAR, size(), SPACE_IMAGE, SPACE_NODE, SPACE_VIEW3D, t, TARGET_INIT, TH_ACTIVE, TH_SELECT, TH_TRANSFORM, TH_VERTEX_SIZE, UI_GetThemeColor3ubv(), UI_GetThemeValuef(), usingSnappingNormal(), ARegion::v2d, validSnap(), validSnappingNormal(), and RegionView3D::viewinv.
Referenced by drawTransformView().
| void freeSnapping | ( | TransInfo * | t | ) |
Definition at line 704 of file transform_snap.c.
References ED_transform_snap_object_context_destroy(), NULL, and t.
Referenced by postTrans().
Definition at line 808 of file transform_snap.c.
References add_v3_v3(), TransSnapPoint::co, copy_v3_v3(), mul_v3_fl(), TransSnapPoint::next, POINT_INIT, and t.
Referenced by ApplySnapResize(), ApplySnapRotation(), ApplySnapTranslation(), edge_slide_snap_apply(), and vert_slide_snap_apply().
| eRedrawFlag handleSnapping | ( | TransInfo * | t, |
| const wmEvent * | event | ||
| ) |
Definition at line 281 of file transform_snap.c.
References initSnapping(), MOUSEMOVE, NULL, SCE_SNAP, wmEvent::shift, t, TREDRAW_HARD, TREDRAW_NOTHING, wmEvent::type, and updateSelectedSnapPoint().
Referenced by transformEvent().
| void initSnapping | ( | TransInfo * | t, |
| wmOperator * | op | ||
| ) |
Definition at line 647 of file transform_snap.c.
References ELEM, initSnappingMode(), MOD_SNAP, normalize_v3(), POINT_INIT, wmOperator::ptr, resetSnapping(), RNA_boolean_get(), RNA_enum_get(), RNA_float_get_array(), RNA_struct_find_property(), RNA_struct_property_is_set(), SCE_SNAP, SCE_SNAP_NO_SELF, SCE_SNAP_PROJECT, SCE_SNAP_ROTATE, ToolSettings::snap_flag, SNAP_FORCED, SPACE_IMAGE, SPACE_NODE, SPACE_VIEW3D, t, T_MODAL, and transformModeUseSnap().
Referenced by handleSnapping(), initTransform(), and transformEvent().
|
static |
Definition at line 539 of file transform_snap.c.
References ViewLayer::basact, bm_edge_is_snap_target(), BM_elem_cb_check_hflag_disabled(), BM_ELEM_HIDDEN, BM_ELEM_SELECT, bm_face_is_snap_target(), CTX_CAMERA, CTX_CURSOR, CTX_GPENCIL_STROKES, CTX_OBMODE_XFORM_OBDATA, ED_transform_snap_object_context_create_view3d(), ED_transform_snap_object_context_set_editmesh_callbacks(), ELEM, Object::mode, NULL, OB_ARMATURE, OB_CURVE, OB_LATTICE, OB_MBALL, OB_MESH, OB_MODE_PARTICLE_EDIT, Base::object, POINTER_FROM_UINT, SCE_SNAP_ABS_GRID, SCE_SNAP_MODE_FACE, SCE_SNAP_MODE_GRID, SCE_SNAP_MODE_INCREMENT, setSnappingCallback(), SNAP_ALL, ToolSettings::snap_flag, ToolSettings::snap_mode, ToolSettings::snap_node_mode, SNAP_NOT_ACTIVE, SNAP_NOT_SELECTED, snap_use_backface_culling(), ToolSettings::snap_uv_mode, SPACE_IMAGE, SPACE_NODE, SPACE_SEQ, SPACE_VIEW3D, t, T_PROP_EDIT, TC_MESH_VERTS, and TFM_TRANSLATION.
Referenced by initSnapping().
| bool peelObjectsTransform | ( | TransInfo * | t, |
| const float | mval[2], | ||
| const bool | use_peel_object, | ||
| float | r_loc[3], | ||
| float | r_no[3], | ||
| float * | r_thickness | ||
| ) |
Definition at line 1187 of file transform_snap.c.
References BLI_freelistN(), BLI_listbase_is_empty(), SnapObjectHitDepth::co, SnapObjectHitDepth::depth, ED_transform_snap_object_project_all_view3d_ex(), ListBase::first, mid_v3_v3v3(), SnapObjectHitDepth::next, NULL, SnapObjectHitDepth::ob_uuid, and t.
Referenced by CalcSnapGeometry().
| void removeSnapPoint | ( | TransInfo * | t | ) |
Definition at line 791 of file transform_snap.c.
References BLI_freelinkN(), BLI_listbase_is_empty(), MULTI_POINTS, NULL, t, and updateSelectedSnapPoint().
Referenced by transformEvent().
| void resetSnapping | ( | TransInfo * | t | ) |
|
static |
Definition at line 712 of file transform_snap.c.
References ATTR_FALLTHROUGH, CalcSnapGeometry(), ELEM, SCE_SNAP_TARGET_ACTIVE, SCE_SNAP_TARGET_CENTER, SCE_SNAP_TARGET_CLOSEST, SCE_SNAP_TARGET_MEDIAN, t, TargetSnapActive(), TargetSnapCenter(), TargetSnapClosest(), TargetSnapMedian(), TFM_RESIZE, and TFM_ROTATION.
Referenced by initSnappingMode().
|
static |
Definition at line 1452 of file transform_snap.c.
References BLI_assert, CON_APPLY, copy_v3_v3(), NULL, snap_target_grid_ensure(), and t.
Referenced by transform_snap_grid().
|
static |
Definition at line 1520 of file transform_snap.c.
References BLI_assert, doForceIncrementSnap(), ELEM, SpaceGraph::flag, SCE_SNAP_MODE_INCREMENT, scene, SIPO_DRAWTIME, snap_increment_apply_ex(), SPACE_GRAPH, t, TFM_TRANSLATION, UI_view2d_grid_resolution_x__frames_or_seconds(), and UI_view2d_grid_resolution_y__values().
Referenced by transform_snap_increment_ex().
|
static |
Definition at line 1506 of file transform_snap.c.
Referenced by snap_increment_apply().
|
static |
Definition at line 963 of file transform_snap.c.
References copy_v3_v3(), data, snap_target_median_impl(), t, TARGET_GRID_INIT, TC_CURSOR_VIEW3D, TRANS_DATA_CONTAINER_FIRST_SINGLE, and V3D_AROUND_CURSOR.
Referenced by snap_grid_apply().
Definition at line 927 of file transform_snap.c.
References add_v3_v3(), FOREACH_TRANS_DATA_CONTAINER, mul_m4_v3(), mul_v3_fl(), t, TD_SELECTED, v, and zero_v3().
Referenced by snap_target_grid_ensure(), and TargetSnapMedian().
|
static |
Definition at line 106 of file transform_snap.c.
References BKE_scene_uses_blender_workbench(), BLI_assert, View3DShading::flag, OB_RENDER, OB_SOLID, SCE_SNAP_BACKFACE_CULLING, View3D::shading, SPACE_VIEW3D, t, View3DShading::type, and V3D_SHADING_BACKFACE_CULLING.
Referenced by initSnappingMode().
| void snapFrameTransform | ( | TransInfo * | t, |
| const eAnimEdit_AutoSnap | autosnap, | ||
| const bool | is_frame_value, | ||
| const float | delta, | ||
| float * | r_val | ||
| ) |
Definition at line 1395 of file transform_snap.c.
References ED_markers_find_nearest_marker_time(), float(), floor(), FPS, SACTSNAP_FRAME, SACTSNAP_MARKER, SACTSNAP_OFF, SACTSNAP_SECOND, SACTSNAP_STEP, SACTSNAP_TSTEP, scene, and t.
Referenced by doAnimEdit_SnapFrame(), and headerTimeTranslate().
|
static |
Definition at line 1289 of file transform_snap.c.
References abs(), border, node, NODE_BOTTOM, NODE_LEFT, NODE_RIGHT, NODE_TOP, ToolSettings::snap_node_mode, snapNodeBorder(), UI_view2d_region_to_view(), UI_view2d_view_to_region_rcti(), ARegion::v2d, rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by snapNodes().
|
static |
Definition at line 1277 of file transform_snap.c.
References NODE_BOTTOM, NODE_LEFT, NODE_RIGHT, NODE_TOP, SCE_SNAP_MODE_NODE_X, and SCE_SNAP_MODE_NODE_Y.
Referenced by snapNode().
|
static |
Definition at line 1349 of file transform_snap.c.
References SpaceNode::edittree, ListBase::first, node, bNodeTree::nodes, ntree, snapNode(), snapNodeTest(), and ARegion::v2d.
Referenced by snapNodesTransform().
| bool snapNodesTransform | ( | TransInfo * | t, |
| const int | mval[2], | ||
| float | r_loc[2], | ||
| float * | r_dist_px, | ||
| char * | r_node_border | ||
| ) |
Definition at line 1373 of file transform_snap.c.
References snapNodes(), and t.
Referenced by CalcSnapGeometry().
|
static |
Definition at line 1268 of file transform_snap.c.
References View2D::cur, node, NODE_ACTIVE, NODE_SELECT, SNAP_ALL, SNAP_NOT_SELECTED, rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by snapNodes().
| short snapObjectsTransform | ( | TransInfo * | t, |
| const float | mval[2], | ||
| float * | dist_px, | ||
| float | r_loc[3], | ||
| float | r_no[3] | ||
| ) |
Definition at line 1157 of file transform_snap.c.
References ED_transform_snap_object_project_view3d_ex(), NULL, SCE_SNAP_MODE_FACE, t, T_EDIT, and TARGET_INIT.
Referenced by CalcSnapGeometry().
| void snapSequenceBounds | ( | TransInfo * | t, |
| const int | mval[2] | ||
| ) |
Definition at line 1432 of file transform_snap.c.
References MOD_SNAP_INVERT, round_fl_to_int(), SEQ_SIDE_BOTH, SEQ_time_find_next_prev_edit(), t, transform_convert_sequencer_get_snap_bound(), and UI_view2d_region_to_view().
Referenced by applySeqSlide().
|
static |
Definition at line 1034 of file transform_snap.c.
References calculateCenterActive(), NULL, SCE_SNAP_TARGET_MEDIAN, t, TARGET_INIT, TargetSnapMedian(), and TargetSnapOffset().
Referenced by setSnappingCallback().
|
static |
Definition at line 1023 of file transform_snap.c.
References copy_v3_v3(), NULL, t, TARGET_INIT, and TargetSnapOffset().
Referenced by setSnappingCallback().
|
static |
Definition at line 1061 of file transform_snap.c.
References BKE_object_boundbox_get(), closest(), copy_v3_v3(), CTX_OBJECT, CTX_OBMODE_XFORM_OBDATA, TransData::ext, fabsf, FOREACH_TRANS_DATA_CONTAINER, mul_m4_v3(), NULL, TransData::ob, TransDataExtension::obmat, POINT_INIT, t, TARGET_INIT, TargetSnapOffset(), TD_SELECTED, TRANSFORM_DIST_INVALID, and BoundBox::vec.
Referenced by setSnappingCallback().
|
static |
Definition at line 1052 of file transform_snap.c.
References snap_target_median_impl(), t, and TARGET_INIT.
Referenced by setSnappingCallback(), and TargetSnapActive().
Definition at line 985 of file transform_snap.c.
References BLI_rctf_size_x(), BLI_rctf_size_y(), border, height, node, NODE_BOTTOM, NODE_LEFT, NODE_RIGHT, NODE_TOP, NULL, SPACE_NODE, t, and width.
Referenced by TargetSnapActive(), TargetSnapCenter(), and TargetSnapClosest().
| float transform_snap_distance_len_squared_fn | ( | TransInfo * | UNUSEDt, |
| const float | p1[3], | ||
| const float | p2[3] | ||
| ) |
Definition at line 1595 of file transform_snap.c.
References len_squared_v3v3().
Referenced by initEdgeSlide_ex(), initTranslation(), and initVertSlide_ex().
Definition at line 1475 of file transform_snap.c.
References activeSnap(), if(), MOD_PRECISION, SCE_SNAP_MODE_GRID, snap_grid_apply(), SPACE_VIEW3D, t, TFM_TRANSLATION, and validSnap().
Referenced by applyTranslation().
Definition at line 1584 of file transform_snap.c.
References t, and transform_snap_increment_ex().
Referenced by applyBakeTime(), applyBevelWeight(), applyBoneEnvelope(), applyBoneRoll(), applyBoneSize(), applyCrease(), applyCurveShrinkFatten(), applyEdgeSlide(), applyGPOpacity(), applyGPShrinkFatten(), applyMaskShrinkFatten(), applyNormalRotation(), applyPushPull(), applyResize(), applyRotation(), applyShear(), applyShrinkFatten(), applySkinResize(), applyTilt(), applyToSphere(), applyTrackball(), applyVertSlide(), Bend(), and ElementResize().
Definition at line 1553 of file transform_snap.c.
References activeSnap(), BLI_assert, doForceIncrementSnap(), MOD_PRECISION, mul_m3_v3(), SCE_SNAP_MODE_INCREMENT, snap_increment_apply(), SPACE_VIEW3D, t, and validSnap().
Referenced by applyTranslation(), and transform_snap_increment().
| bool transformModeUseSnap | ( | const TransInfo * | t | ) |
Definition at line 136 of file transform_snap.c.
References SCE_SNAP_TRANSFORM_MODE_ROTATE, SCE_SNAP_TRANSFORM_MODE_SCALE, SCE_SNAP_TRANSFORM_MODE_TRANSLATE, ToolSettings::snap_transform_mode_flag, t, TFM_EDGE_SLIDE, TFM_RESIZE, TFM_ROTATION, TFM_TRANSLATION, and TFM_VERT_SLIDE.
Referenced by doForceIncrementSnap(), drawDial3d(), initSnapping(), and saveTransform().
| eRedrawFlag updateSelectedSnapPoint | ( | TransInfo * | t | ) |
Definition at line 753 of file transform_snap.c.
References TransSnapPoint::co, ED_view3d_project_float_global(), len_squared_v2v2(), MULTI_POINTS, TransSnapPoint::next, NULL, t, TRANSFORM_SNAP_MAX_PX, TREDRAW_HARD, TREDRAW_NOTHING, V3D_PROJ_RET_OK, and V3D_PROJ_TEST_NOP.
Referenced by handleSnapping(), and removeSnapPoint().
| bool usingSnappingNormal | ( | const TransInfo * | t | ) |
Definition at line 496 of file transform_snap.c.
References t.
Referenced by applyTranslationValue(), createTransEditVerts(), and drawSnapping().
| bool validSnap | ( | const TransInfo * | t | ) |
Definition at line 124 of file transform_snap.c.
References MULTI_POINTS, POINT_INIT, t, and TARGET_INIT.
Referenced by applyAxisConstraintVec(), applyEdgeSlide(), applyRotation(), applySnapping(), applyTranslation(), applyVertSlide(), drawSnapping(), transform_modal_item_poll(), transform_snap_grid(), transform_snap_increment_ex(), and validSnappingNormal().
| bool validSnappingNormal | ( | const TransInfo * | t | ) |
Definition at line 501 of file transform_snap.c.
References is_zero_v3(), t, and validSnap().
Referenced by applyTranslationValue(), and drawSnapping().