From e74a023309cf06986e6aa855b25fd9b2de989297 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 23 Dec 2015 16:35:13 +1100 Subject: Disable calculating manipulator while transforming Gives ~10% speedup --- source/blender/editors/transform/transform_manipulator.c | 2 ++ 1 file changed, 2 insertions(+) (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 79b071e6678..3ce0de5a6a1 100644 --- a/source/blender/editors/transform/transform_manipulator.c +++ b/source/blender/editors/transform/transform_manipulator.c @@ -1610,6 +1610,8 @@ void BIF_draw_manipulator(const bContext *C) if (!(v3d->twflag & V3D_USE_MANIPULATOR)) return; + if ((v3d->twtype & (V3D_MANIP_TRANSLATE | V3D_MANIP_ROTATE | V3D_MANIP_SCALE)) == 0) return; + { v3d->twflag &= ~V3D_DRAW_MANIPULATOR; -- cgit v1.2.3