Manipulator: Skip redundant transform updates

Partially address T55458
This commit is contained in:
Campbell Barton 2018-06-13 11:59:48 +02:00
parent ca7a93953a
commit c0926d536f
1 changed files with 6 additions and 1 deletions

View File

@ -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;