diff options
| author | Jabiertxof <jabier.arraiza@marker.es> | 2019-11-02 23:15:56 +0000 |
|---|---|---|
| committer | Jabiertxof <jabier.arraiza@marker.es> | 2019-11-02 23:15:56 +0000 |
| commit | 0175d30778b93a1b79e9dedc53f037e81de729b7 (patch) | |
| tree | c651f299480ba4374efa1436dd4ffc0a409fa3a2 /src/ui/dialog | |
| parent | Allow forking on powermask (diff) | |
| download | inkscape-0175d30778b93a1b79e9dedc53f037e81de729b7.tar.gz inkscape-0175d30778b93a1b79e9dedc53f037e81de729b7.zip | |
Improve speed of LPE's updating widgets on release knots instead when value change
Diffstat (limited to 'src/ui/dialog')
| -rw-r--r-- | src/ui/dialog/livepatheffect-editor.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ui/dialog/livepatheffect-editor.cpp b/src/ui/dialog/livepatheffect-editor.cpp index 8eea0895f..49da3f4d1 100644 --- a/src/ui/dialog/livepatheffect-editor.cpp +++ b/src/ui/dialog/livepatheffect-editor.cpp @@ -209,7 +209,7 @@ bool LivePathEffectEditor::_on_button_release(GdkEventButton* button_event) { if (lperef->getObject()) { LivePathEffect::Effect * effect = lperef->lpeobject->get_lpe(); if (effect) { - effect->upd_params = true; + effect->refresh_widgets = true; showParams(*effect); } } @@ -220,7 +220,7 @@ bool LivePathEffectEditor::_on_button_release(GdkEventButton* button_event) { void LivePathEffectEditor::showParams(LivePathEffect::Effect& effect) { - if (effectwidget && !effect.upd_params) { + if (effectwidget && !effect.refresh_widgets) { return; } if (effectwidget) { @@ -237,7 +237,7 @@ LivePathEffectEditor::showParams(LivePathEffect::Effect& effect) effectcontrol_frame.show(); effectcontrol_vbox.show_all_children(); // fixme: add resizing of dialog - effect.upd_params = false; + effect.refresh_widgets = false; } void @@ -561,7 +561,7 @@ void LivePathEffectEditor::on_effect_selection_changed() current_lperef = lperef; LivePathEffect::Effect * effect = lperef->lpeobject->get_lpe(); if (effect) { - effect->upd_params = true; + effect->refresh_widgets = true; showParams(*effect); //To reload knots and helper paths Inkscape::Selection *sel = _getSelection(); |
