summaryrefslogtreecommitdiffstats
path: root/src/live_effects/parameter/satellitesarray.cpp
diff options
context:
space:
mode:
authorJabiertxof <jabier.arraiza@marker.es>2019-11-02 23:15:56 +0000
committerJabiertxof <jabier.arraiza@marker.es>2019-11-02 23:15:56 +0000
commit0175d30778b93a1b79e9dedc53f037e81de729b7 (patch)
treec651f299480ba4374efa1436dd4ffc0a409fa3a2 /src/live_effects/parameter/satellitesarray.cpp
parentAllow forking on powermask (diff)
downloadinkscape-0175d30778b93a1b79e9dedc53f037e81de729b7.tar.gz
inkscape-0175d30778b93a1b79e9dedc53f037e81de729b7.zip
Improve speed of LPE's updating widgets on release knots instead when value change
Diffstat (limited to 'src/live_effects/parameter/satellitesarray.cpp')
-rw-r--r--src/live_effects/parameter/satellitesarray.cpp7
1 files changed, 5 insertions, 2 deletions
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;