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>2020-01-10 05:04:52 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-01-10 05:08:43 +0300
commit7eaed14fae865826ed4dc8053c42cb929f71dce7 (patch)
treea4e0c7733c12b19a88ef19cc69afaeea29444961 /source/blender/windowmanager/intern/wm_operator_utils.c
parentad69127859247bceddbc1a2bcca3cf1993cdbae7 (diff)
Fix T72948: Smooth active tool gizmo vibrates
Diffstat (limited to 'source/blender/windowmanager/intern/wm_operator_utils.c')
-rw-r--r--source/blender/windowmanager/intern/wm_operator_utils.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_operator_utils.c b/source/blender/windowmanager/intern/wm_operator_utils.c
index c2af82c007e..856c85d4554 100644
--- a/source/blender/windowmanager/intern/wm_operator_utils.c
+++ b/source/blender/windowmanager/intern/wm_operator_utils.c
@@ -26,6 +26,7 @@
#include "BLI_string.h"
#include "BKE_context.h"
+#include "BKE_global.h"
#include "BKE_layer.h"
#include "RNA_access.h"
@@ -176,6 +177,8 @@ static void op_generic_value_exit(wmOperator *op)
MEM_freeN(cd->objects_xform);
MEM_freeN(cd);
}
+
+ G.moving &= ~G_TRANSFORM_EDIT;
}
static void op_generic_value_restore(wmOperator *op)
@@ -228,6 +231,8 @@ static int op_generic_value_invoke(bContext *C, wmOperator *op, const wmEvent *e
op->customdata = cd;
WM_event_add_modal_handler(C, op);
+ G.moving |= G_TRANSFORM_EDIT;
+
return OPERATOR_RUNNING_MODAL;
}