diff options
Diffstat (limited to 'source/blender/editors/transform/transform_generics.c')
-rw-r--r-- | source/blender/editors/transform/transform_generics.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/editors/transform/transform_generics.c b/source/blender/editors/transform/transform_generics.c index abd19bc3121..a2957263ba9 100644 --- a/source/blender/editors/transform/transform_generics.c +++ b/source/blender/editors/transform/transform_generics.c @@ -1641,6 +1641,15 @@ void calculateCenter(TransInfo *t) break; } } + else if (t->obedit && t->obedit->type == OB_LATTICE) { + BPoint *actbp = BKE_lattice_active_point_get(t->obedit->data); + + if (actbp) { + copy_v3_v3(t->center, actbp->vec); + calculateCenter2D(t); + break; + } + } } /* END EDIT MODE ACTIVE ELEMENT */ calculateCenterMedian(t); |