From 8d05e14b0f6626422a0c486665279d3d3434825e Mon Sep 17 00:00:00 2001 From: Martin Poirier Date: Sat, 14 Jan 2006 20:52:39 +0000 Subject: [PATCH] Bug fix: #3684 When grabing a camera in camera view, the constraint center wasn't the center used for initgrabz, so it messed up a lot. --- source/blender/src/transform_generics.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/blender/src/transform_generics.c b/source/blender/src/transform_generics.c index c838b01197c..7be86bd34b3 100755 --- a/source/blender/src/transform_generics.c +++ b/source/blender/src/transform_generics.c @@ -728,7 +728,10 @@ void calculateCenter(TransInfo *t) projectIntView(t, axis, t->center2d); /* rotate only needs correct 2d center, grab needs initgrabz() value */ - if(t->mode==TFM_TRANSLATION) VECCOPY(t->center, axis); + if(t->mode==TFM_TRANSLATION) { + VECCOPY(t->center, axis); + VECCOPY(t->con.center, t->center); + } } }