Commit: c0926d536fb0495930799006d009819a58707c3e
Author: Campbell Barton
Date:   Wed Jun 13 11:59:48 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBc0926d536fb0495930799006d009819a58707c3e

Manipulator: Skip redundant transform updates

Partially address T55458

===================================================================

M       source/blender/editors/transform/transform_manipulator_3d.c

===================================================================

diff --git a/source/blender/editors/transform/transform_manipulator_3d.c 
b/source/blender/editors/transform/transform_manipulator_3d.c
index b6782470f96..a62125935b1 100644
--- a/source/blender/editors/transform/transform_manipulator_3d.c
+++ b/source/blender/editors/transform/transform_manipulator_3d.c
@@ -1238,9 +1238,14 @@ static ManipulatorGroup 
*manipulatorgroup_init(wmManipulatorGroup *mgroup)
  * Custom handler for manipulator widgets
  */
 static int manipulator_modal(
-        bContext *C, wmManipulator *widget, const wmEvent *UNUSED(event),
+        bContext *C, wmManipulator *widget, const wmEvent *event,
         eWM_ManipulatorTweak UNUSED(tweak_flag))
 {
+       /* Avoid unnecessary updates, partially address: T55458. */
+       if (ELEM(event->type, TIMER, INBETWEEN_MOUSEMOVE)) {
+               return OPERATOR_RUNNING_MODAL;
+       }
+
        const ScrArea *sa = CTX_wm_area(C);
        ARegion *ar = CTX_wm_region(C);
        View3D *v3d = sa->spacedata.first;

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to