Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform_convert_mesh.c
| Show First 20 Lines • Show All 1,934 Lines • ▼ Show 20 Lines | switch (t->mode) { | ||||
| default: { | default: { | ||||
| partial_for_looptri = PARTIAL_TYPE_ALL; | partial_for_looptri = PARTIAL_TYPE_ALL; | ||||
| partial_for_normals = PARTIAL_TYPE_ALL; | partial_for_normals = PARTIAL_TYPE_ALL; | ||||
| break; | break; | ||||
| } | } | ||||
| } | } | ||||
| /* With projection, transform isn't affine. */ | /* With projection, transform isn't affine. */ | ||||
| if (activeSnap_with_project(t)) { | if (activeSnap_SnappingIndividual(t)) { | ||||
| if (partial_for_looptri == PARTIAL_TYPE_GROUP) { | if (partial_for_looptri == PARTIAL_TYPE_GROUP) { | ||||
| partial_for_looptri = PARTIAL_TYPE_ALL; | partial_for_looptri = PARTIAL_TYPE_ALL; | ||||
| } | } | ||||
| if (partial_for_normals == PARTIAL_TYPE_GROUP) { | if (partial_for_normals == PARTIAL_TYPE_GROUP) { | ||||
| partial_for_normals = PARTIAL_TYPE_ALL; | partial_for_normals = PARTIAL_TYPE_ALL; | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 99 Lines • ▼ Show 20 Lines | static void tc_mesh_transdata_mirror_apply(TransDataContainer *tc) | ||||
| } | } | ||||
| } | } | ||||
| void recalcData_mesh(TransInfo *t) | void recalcData_mesh(TransInfo *t) | ||||
| { | { | ||||
| bool is_canceling = t->state == TRANS_CANCEL; | bool is_canceling = t->state == TRANS_CANCEL; | ||||
| /* Apply corrections. */ | /* Apply corrections. */ | ||||
| if (!is_canceling) { | if (!is_canceling) { | ||||
| applyProject(t); | applySnappingIndividual(t); | ||||
| bool do_mirror = !(t->flag & T_NO_MIRROR); | bool do_mirror = !(t->flag & T_NO_MIRROR); | ||||
| FOREACH_TRANS_DATA_CONTAINER (t, tc) { | FOREACH_TRANS_DATA_CONTAINER (t, tc) { | ||||
| /* Apply clipping after so we never project past the clip plane T25423. */ | /* Apply clipping after so we never project past the clip plane T25423. */ | ||||
| transform_convert_clip_mirror_modifier_apply(tc); | transform_convert_clip_mirror_modifier_apply(tc); | ||||
| if (do_mirror) { | if (do_mirror) { | ||||
| tc_mesh_transdata_mirror_apply(tc); | tc_mesh_transdata_mirror_apply(tc); | ||||
| ▲ Show 20 Lines • Show All 86 Lines • Show Last 20 Lines | |||||