diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-12-23 08:35:13 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-12-23 08:35:13 +0300 |
commit | e74a023309cf06986e6aa855b25fd9b2de989297 (patch) | |
tree | 607b528b490961cc4d03a67ce6810ddfc1243618 /source | |
parent | 44b593ae2d08c5294116a473328b741ec3fc0224 (diff) |
Disable calculating manipulator while transforming
Gives ~10% speedup
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/transform/transform_manipulator.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |