From 76f0853b7d6bbe1233daa3141ce1379e2df1e934 Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Thu, 12 Jan 2012 22:06:16 +0100 Subject: 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) --- src/live_effects/effect.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/live_effects/effect.cpp') 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 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 LPETypeConverter(LPETypeData, sizeof(LPETypeData)/sizeof(*LPETypeData)); @@ -242,6 +244,9 @@ Effect::New(EffectType lpenr, LivePathEffectObject *lpeobj) case POWERSTROKE: neweffect = static_cast ( new LPEPowerStroke(lpeobj) ); break; + case CLONE_ORIGINAL: + neweffect = static_cast ( new LPECloneOriginal(lpeobj) ); + break; default: g_warning("LivePathEffect::Effect::New called with invalid patheffect type (%d)", lpenr); neweffect = NULL; -- cgit v1.2.3