From: dooglus Date: Sat, 9 Feb 2008 20:56:27 +0000 (+0000) Subject: Give slight priority to radius ducks. That way, it's possible to select the radius... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=643e2891f5d071fcc84e906b696d106696ca5fed;p=synfig.git Give slight priority to radius ducks. That way, it's possible to select the radius duck for a circle with radius zero. Previously the position duck would usually be selected instead. git-svn-id: http://svn.voria.com/code@1644 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-studio/trunk/src/gtkmm/duckmatic.cpp b/synfig-studio/trunk/src/gtkmm/duckmatic.cpp index df247ae..cd137cb 100644 --- a/synfig-studio/trunk/src/gtkmm/duckmatic.cpp +++ b/synfig-studio/trunk/src/gtkmm/duckmatic.cpp @@ -774,6 +774,8 @@ Duckmatic::find_duck(synfig::Point point, synfig::Real radius, Duck::Type type) if(duck->get_type()&Duck::TYPE_VERTEX) dist*=1.0001; + else if(duck->get_type()&Duck::TYPE_RADIUS) + dist*=0.9999; if(dist<=closest && !( duck->get_type() && (!(type & duck->get_type())) ) ) {