Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2015-12-23 08:35:13 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-12-23 08:35:13 +0300
commite74a023309cf06986e6aa855b25fd9b2de989297 (patch)
tree607b528b490961cc4d03a67ce6810ddfc1243618 /source/blender/editors/transform/transform_manipulator.c
parent44b593ae2d08c5294116a473328b741ec3fc0224 (diff)
Disable calculating manipulator while transforming
Gives ~10% speedup
Diffstat (limited to 'source/blender/editors/transform/transform_manipulator.c')
-rw-r--r--source/blender/editors/transform/transform_manipulator.c2
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;