[Bf-blender-cvs] [e74a023] master: Disable calculating manipulator while transforming
Campbell Barton
noreply at git.blender.org
Wed Dec 23 06:43:28 CET 2015
Commit: e74a023309cf06986e6aa855b25fd9b2de989297
Author: Campbell Barton
Date: Wed Dec 23 16:35:13 2015 +1100
Branches: master
https://developer.blender.org/rBe74a023309cf06986e6aa855b25fd9b2de989297
Disable calculating manipulator while transforming
Gives ~10% speedup
===================================================================
M 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 79b071e..3ce0de5 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;
More information about the Bf-blender-cvs
mailing list