From 0175d30778b93a1b79e9dedc53f037e81de729b7 Mon Sep 17 00:00:00 2001 From: Jabiertxof Date: Sun, 3 Nov 2019 00:15:56 +0100 Subject: Improve speed of LPE's updating widgets on release knots instead when value change --- src/live_effects/parameter/satellitesarray.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/live_effects/parameter/satellitesarray.cpp') diff --git a/src/live_effects/parameter/satellitesarray.cpp b/src/live_effects/parameter/satellitesarray.cpp index 311f1e0ce..c80271c4c 100644 --- a/src/live_effects/parameter/satellitesarray.cpp +++ b/src/live_effects/parameter/satellitesarray.cpp @@ -231,6 +231,11 @@ FilletChamferKnotHolderEntity::FilletChamferKnotHolderEntity( SatellitesArrayParam *p, size_t index) : _pparam(p), _index(index) {} +void FilletChamferKnotHolderEntity::knot_ungrabbed(Geom::Point const &p, Geom::Point const &origin, guint state) +{ + _pparam->param_effect->refresh_widgets = true; +} + void FilletChamferKnotHolderEntity::knot_set(Geom::Point const &p, Geom::Point const &/*origin*/, guint state) @@ -238,7 +243,6 @@ void FilletChamferKnotHolderEntity::knot_set(Geom::Point const &p, if (!_pparam->_last_pathvector_satellites) { return; } - _pparam->param_effect->upd_params = true; size_t total_satellites = _pparam->_last_pathvector_satellites->getTotalSatellites(); bool is_mirror = false; size_t index = _index; @@ -457,7 +461,6 @@ void FilletChamferKnotHolderEntity::knot_set_offset(Satellite satellite) if (!_pparam->_last_pathvector_satellites) { return; } - _pparam->param_effect->upd_params = true; size_t total_satellites = _pparam->_last_pathvector_satellites->getTotalSatellites(); bool is_mirror = false; size_t index = _index; -- cgit v1.2.3