diff options
| author | Maximilian Albert <maximilian.albert@gmail.com> | 2008-06-16 15:45:47 +0000 |
|---|---|---|
| committer | cilix42 <cilix42@users.sourceforge.net> | 2008-06-16 15:45:47 +0000 |
| commit | 5105a8b365bd0a62f3c8e89fdb65614d83847459 (patch) | |
| tree | 0ccbdd60d9ff3215262f873e9c30ecfe822eab51 /src/live_effects/effect.cpp | |
| parent | First step towards making helper paths for LPE items work better (diff) | |
| download | inkscape-5105a8b365bd0a62f3c8e89fdb65614d83847459.tar.gz inkscape-5105a8b365bd0a62f3c8e89fdb65614d83847459.zip | |
Second step: try to make helper curves respond faster (don't recreate/delete the temporary canvasitems each time the selection is modified); better use of flash paths
(bzr r5955)
Diffstat (limited to 'src/live_effects/effect.cpp')
| -rw-r--r-- | src/live_effects/effect.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/live_effects/effect.cpp b/src/live_effects/effect.cpp index 0497d0e37..9476f0377 100644 --- a/src/live_effects/effect.cpp +++ b/src/live_effects/effect.cpp @@ -408,12 +408,16 @@ Effect::addHelperPaths(SPLPEItem *lpeitem, SPDesktop *desktop) { g_return_if_fail(SP_IS_PATH(lpeitem)); - if (show_orig_path) { + if (providesKnotholder() && showOrigPath()) { + // TODO: we assume that if the LPE provides its own knotholder, there is no nodepath so we + // must create the helper curve for the original path manually; when we allow nodepaths and + // knotholders alongside each other, this needs to be rethought! SPCanvasItem *canvasitem = sp_nodepath_generate_helperpath(desktop, SP_PATH(lpeitem)); // TODO: Make sure the tempitem doesn't get destroyed when the mouse leaves the item Inkscape::Display::TemporaryItem* tmpitem = desktop->add_temporary_canvasitem (canvasitem, 0); lpeitem->lpe_helperpaths.push_back(tmpitem); } + addHelperPathsImpl(lpeitem, desktop); } |
