[Bf-blender-cvs] [c0926d536fb] blender2.8: Manipulator: Skip redundant transform updates
Campbell Barton
noreply at git.blender.org
Wed Jun 13 12:01:21 CEST 2018
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;
More information about the Bf-blender-cvs
mailing list