Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-06-10 00:28:08 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-06-10 00:28:08 +0400
commiteabb30a2367808c163a90d658c5be586530098ec (patch)
treee3d1a20fad111127c3c20c3450b003553b171db5 /source/blender/editors/space_view3d/view3d_snap.c
parent28add50083204e99121c5290242652ccd3fcca9e (diff)
patch [#35631] Active element for Lattice
by Kevin Mackay (yakca) Was one of our TODO's from the wiki.
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_snap.c')
-rw-r--r--source/blender/editors/space_view3d/view3d_snap.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/editors/space_view3d/view3d_snap.c b/source/blender/editors/space_view3d/view3d_snap.c
index c864a3a78b4..d243f355b5c 100644
--- a/source/blender/editors/space_view3d/view3d_snap.c
+++ b/source/blender/editors/space_view3d/view3d_snap.c
@@ -1015,6 +1015,14 @@ static int snap_curs_to_active(bContext *C, wmOperator *UNUSED(op))
mul_m4_v3(obedit->obmat, curs);
}
+ else if (obedit->type == OB_LATTICE) {
+ BPoint *actbp = BKE_lattice_active_point_get(obedit->data);
+
+ if (actbp) {
+ copy_v3_v3(curs, actbp->vec);
+ mul_m4_v3(obedit->obmat, curs);
+ }
+ }
}
else {
if (obact) {