From 2fb0d596bc5823f8d72a8a4262e147231170c9cd Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Tue, 30 Oct 2007 22:37:20 +0000 Subject: LPE: implement NEW path-along-path effect, i think that old one has become obsolete and is renamed accordingly. implement straight path node editting for gears effect. (bzr r3983) --- src/live_effects/parameter/path.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/live_effects/parameter/path.cpp') diff --git a/src/live_effects/parameter/path.cpp b/src/live_effects/parameter/path.cpp index 2b558d2dd..68f7be4a9 100644 --- a/src/live_effects/parameter/path.cpp +++ b/src/live_effects/parameter/path.cpp @@ -147,6 +147,15 @@ PathParam::param_write_to_repr(const char * svgd) } +void +PathParam::param_set_and_write_new_value (Geom::Piecewise > newpath) +{ + const std::vector temppath = Geom::path_from_piecewise(newpath, LPE_CONVERSION_TOLERANCE); + gchar * svgd = SVGD_from_2GeomPath( temppath ); + param_write_to_repr(svgd); + g_free(svgd); +} + /* CALLBACK FUNCTIONS FOR THE BUTTONS */ void PathParam::on_edit_button_click() -- cgit v1.2.3