diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2012-01-12 21:06:16 +0000 |
|---|---|---|
| committer | Johan Engelen <goejendaagh@zonnet.nl> | 2012-01-12 21:06:16 +0000 |
| commit | 76f0853b7d6bbe1233daa3141ce1379e2df1e934 (patch) | |
| tree | caeee88d187ec0312914f48953729d6f7f0b21d9 /src/live_effects/effect.cpp | |
| parent | Initial C++ification of SPCanvas. (diff) | |
| download | inkscape-76f0853b7d6bbe1233daa3141ce1379e2df1e934.tar.gz inkscape-76f0853b7d6bbe1233daa3141ce1379e2df1e934.zip | |
LPE: add new LPE that outputs the original path data. used to make a clone (without LPE) of a path with an LPE applied
(bzr r10874)
Diffstat (limited to 'src/live_effects/effect.cpp')
| -rw-r--r-- | src/live_effects/effect.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/live_effects/effect.cpp b/src/live_effects/effect.cpp index 3ce2aeef3..35e87f76c 100644 --- a/src/live_effects/effect.cpp +++ b/src/live_effects/effect.cpp @@ -75,6 +75,7 @@ #include "live_effects/lpe-recursiveskeleton.h" #include "live_effects/lpe-extrude.h" #include "live_effects/lpe-powerstroke.h" +#include "live_effects/lpe-clone-original.h" namespace Inkscape { @@ -122,6 +123,7 @@ const Util::EnumData<EffectType> LPETypeData[] = { {RULER, N_("Ruler"), "ruler"}, /* 0.49 ?*/ {POWERSTROKE, N_("[Unstable!] Power stroke"), "powerstroke"}, + {CLONE_ORIGINAL, N_("[Unstable!] Clone original path"), "clone_original"}, }; const Util::EnumDataConverter<EffectType> LPETypeConverter(LPETypeData, sizeof(LPETypeData)/sizeof(*LPETypeData)); @@ -242,6 +244,9 @@ Effect::New(EffectType lpenr, LivePathEffectObject *lpeobj) case POWERSTROKE: neweffect = static_cast<Effect*> ( new LPEPowerStroke(lpeobj) ); break; + case CLONE_ORIGINAL: + neweffect = static_cast<Effect*> ( new LPECloneOriginal(lpeobj) ); + break; default: g_warning("LivePathEffect::Effect::New called with invalid patheffect type (%d)", lpenr); neweffect = NULL; |
