summaryrefslogtreecommitdiffstats
path: root/src/live_effects/effect.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2014-05-30 18:23:12 +0000
committerJabiertxof <jtx@jtx.marker.es>2014-05-30 18:23:12 +0000
commit519d4aa4931a9ca00b6fd9874e49a863dc54a4df (patch)
tree741a62c3b541571b16b8e23255d7721b3cc0b0ed /src/live_effects/effect.cpp
parentUnquote names in 'font-family' lists. Partial fix for #1029080 (diff)
downloadinkscape-519d4aa4931a9ca00b6fd9874e49a863dc54a4df.tar.gz
inkscape-519d4aa4931a9ca00b6fd9874e49a863dc54a4df.zip
Added Perspective-Envelope live effect
(bzr r13341.1.43)
Diffstat (limited to 'src/live_effects/effect.cpp')
-rw-r--r--src/live_effects/effect.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/live_effects/effect.cpp b/src/live_effects/effect.cpp
index 76546c093..eef954fe2 100644
--- a/src/live_effects/effect.cpp
+++ b/src/live_effects/effect.cpp
@@ -48,6 +48,7 @@
#include "live_effects/lpe-extrude.h"
#include "live_effects/lpe-powerstroke.h"
#include "live_effects/lpe-clone-original.h"
+#include "live_effects/lpe-envelope-perspective.h"
#include "xml/node-event-vector.h"
#include "sp-object.h"
@@ -126,6 +127,7 @@ const Util::EnumData<EffectType> LPETypeData[] = {
{BSPLINE, N_("BSpline"), "bspline"},
{SIMPLIFY, N_("Simplify"), "simplify"},
{LATTICE2, N_("Lattice Deformation 2"), "lattice2"},
+ {ENVELOPE_PERSPECTIVE, N_("Envelope-Perspective"), "envelope-perspective"},
};
const Util::EnumDataConverter<EffectType> LPETypeConverter(LPETypeData, sizeof(LPETypeData)/sizeof(*LPETypeData));
@@ -258,6 +260,9 @@ Effect::New(EffectType lpenr, LivePathEffectObject *lpeobj)
case LATTICE2:
neweffect = static_cast<Effect*> ( new LPELattice2(lpeobj) );
break;
+ case ENVELOPE_PERSPECTIVE:
+ neweffect = static_cast<Effect*> ( new LPEEnvelopePerspective(lpeobj) );
+ break;
default:
g_warning("LivePathEffect::Effect::New called with invalid patheffect type (%d)", lpenr);
neweffect = NULL;