From 9ad41b0d8487c57ababec0da386adb620e7f06a7 Mon Sep 17 00:00:00 2001 From: dooglus Date: Fri, 7 Nov 2008 18:11:26 +0000 Subject: [PATCH] Show the start and end points connected, and add a width duck to the start point. git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2167 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-core/trunk/src/modules/lyr_std/curvewarp.cpp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/synfig-core/trunk/src/modules/lyr_std/curvewarp.cpp b/synfig-core/trunk/src/modules/lyr_std/curvewarp.cpp index c61216a..3a10076 100644 --- a/synfig-core/trunk/src/modules/lyr_std/curvewarp.cpp +++ b/synfig-core/trunk/src/modules/lyr_std/curvewarp.cpp @@ -160,16 +160,16 @@ CurveWarp::sync() CurveWarp::CurveWarp(): origin(0,0), perp_width(1), - start_point(-3,-1), - end_point(3,1), + start_point(-2.5,-0.5), + end_point(2.5,-0.3), fast(true) { bline.push_back(BLinePoint()); bline.push_back(BLinePoint()); bline[0].set_vertex(Point(-2.5,0)); - bline[1].set_vertex(Point(2.5,0)); - bline[0].set_tangent(Point(1, 1)); - bline[1].set_tangent(Point(1, -1)); + bline[1].set_vertex(Point( 2.5,0)); + bline[0].set_tangent(Point(1, 0.1)); + bline[1].set_tangent(Point(1, -0.1)); bline[0].set_width(1.0f); bline[1].set_width(1.0f); @@ -397,10 +397,12 @@ CurveWarp::get_param_vocab()const .set_local_name(_("Origin"))); ret.push_back(ParamDesc("perp_width") - .set_local_name(_("Width"))); + .set_local_name(_("Width")) + .set_origin("start_point")); ret.push_back(ParamDesc("start_point") - .set_local_name(_("Start Point"))); + .set_local_name(_("Start Point")) + .set_connect("end_point")); ret.push_back(ParamDesc("end_point") .set_local_name(_("End Point"))); -- 2.7.4