From: Carlos Lopez Date: Wed, 1 Sep 2010 18:03:06 +0000 (+0200) Subject: Add one extra parameter to Value Description (Scale) to allow distinguish tangent... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=1b2eaac58a5a6a3fdd94a680c944a797cd9e61db;p=synfig.git Add one extra parameter to Value Description (Scale) to allow distinguish tangent value nodes from BLine Points --- diff --git a/synfig-studio/src/gui/duckmatic.cpp b/synfig-studio/src/gui/duckmatic.cpp index fe2d6a3..18c3d50 100644 --- a/synfig-studio/src/gui/duckmatic.cpp +++ b/synfig-studio/src/gui/duckmatic.cpp @@ -1614,7 +1614,7 @@ Duckmatic::add_to_ducks(const synfigapp::ValueDesc& value_desc,etl::handle vertex_duck(last_duck()); vertex_duck->set_type(Duck::TYPE_VERTEX); - if(!add_to_ducks(synfigapp::ValueDesc(value_node,4),canvas_view,transform_stack)) + if(!add_to_ducks(synfigapp::ValueDesc(value_node,4,-TANGENT_HANDLE_SCALE),canvas_view,transform_stack)) return false; etl::handle t1_duck(last_duck()); @@ -1627,7 +1627,7 @@ Duckmatic::add_to_ducks(const synfigapp::ValueDesc& value_desc,etl::handleget_link("split"))(get_time()).get(bool())) { - if(!add_to_ducks(synfigapp::ValueDesc(value_node,5),canvas_view,transform_stack)) + if(!add_to_ducks(synfigapp::ValueDesc(value_node,5,TANGENT_HANDLE_SCALE),canvas_view,transform_stack)) return false; t2_duck=last_duck(); t2_duck->set_origin(vertex_duck); @@ -1636,7 +1636,7 @@ Duckmatic::add_to_ducks(const synfigapp::ValueDesc& value_desc,etl::handleset_origin(vertex_duck); @@ -1791,7 +1791,7 @@ Duckmatic::add_to_ducks(const synfigapp::ValueDesc& value_desc,etl::handlelink_name(index); } synfig::Time get_waypoint_time()const { assert(parent_is_waypoint()); return waypoint_time; } @@ -194,6 +201,7 @@ public: synfig::String get_description(bool show_exported_name = true)const; + }; // END of class ValueDesc }; // END of namespace synfigapp_instance