From: dooglus Date: Mon, 7 Apr 2008 20:15:10 +0000 (+0000) Subject: Use the 'feather' and 'invert' tool options when creating outline or region layers... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=3a378592b8eb1735162c46eaec90dceb8c3e1ab4;p=synfig.git Use the 'feather' and 'invert' tool options when creating outline or region layers in the circle tool. git-svn-id: http://svn.voria.com/code@1976 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-studio/trunk/src/gtkmm/state_circle.cpp b/synfig-studio/trunk/src/gtkmm/state_circle.cpp index 9cc9b4a..04df2f3 100644 --- a/synfig-studio/trunk/src/gtkmm/state_circle.cpp +++ b/synfig-studio/trunk/src/gtkmm/state_circle.cpp @@ -736,11 +736,11 @@ StateCircle_Context::make_circle(const Point& _p1, const Point& _p2) layer->set_description(get_id()+_(" Region")); get_canvas_interface()->signal_layer_new_description()(layer,layer->get_description()); - if(get_feather()) - { - layer->set_param("feather",get_feather()); - get_canvas_interface()->signal_layer_param_changed()(layer,"feather"); - } + layer->set_param("feather",get_feather()); + get_canvas_interface()->signal_layer_param_changed()(layer,"feather"); + + layer->set_param("invert",get_invert()); + get_canvas_interface()->signal_layer_param_changed()(layer,"invert"); if(get_layer_outline_flag()) layer->set_param("color",synfigapp::Main::get_background_color()); @@ -803,11 +803,12 @@ StateCircle_Context::make_circle(const Point& _p1, const Point& _p2) layer_selection.push_back(layer); layer->set_description(get_id()+_(" Outline")); get_canvas_interface()->signal_layer_new_description()(layer,layer->get_description()); - if(get_feather()) - { - layer->set_param("feather",get_feather()); - get_canvas_interface()->signal_layer_param_changed()(layer,"feather"); - } + + layer->set_param("feather",get_feather()); + get_canvas_interface()->signal_layer_param_changed()(layer,"feather"); + + layer->set_param("invert",get_invert()); + get_canvas_interface()->signal_layer_param_changed()(layer,"invert"); { synfigapp::Action::Handle action(synfigapp::Action::create("layer_param_connect"));