From c0e39df6ac42d137fd51eeea463aace856bf97d4 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Tue, 10 Aug 2010 06:36:42 +0000 Subject: - Enable shape key switching in edit mode for curves, surfaces and latticies - Disable changing of lattice size if there are shape keys --- source/blender/editors/transform/transform_manipulator.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/editors/transform/transform_manipulator.c') diff --git a/source/blender/editors/transform/transform_manipulator.c b/source/blender/editors/transform/transform_manipulator.c index e6def04130c..27c3f056b9b 100644 --- a/source/blender/editors/transform/transform_manipulator.c +++ b/source/blender/editors/transform/transform_manipulator.c @@ -379,9 +379,9 @@ int calc_manipulator_stats(const bContext *C) BPoint *bp; Lattice *lt= obedit->data; - bp= lt->editlatt->def; + bp= lt->editlatt->latt->def; - a= lt->editlatt->pntsu*lt->editlatt->pntsv*lt->editlatt->pntsw; + a= lt->editlatt->latt->pntsu*lt->editlatt->latt->pntsv*lt->editlatt->latt->pntsw; while(a--) { if(bp->f1 & SELECT) { calc_tw_center(scene, bp->vec); -- cgit v1.2.3