From: dooglus Date: Sat, 20 Sep 2008 15:02:11 +0000 (+0000) Subject: Fix 2120629: "circles with large feather and zero radius are invisible". Only shortc... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=6c6c2075b18fa55282829925e3de51cbb41a965d;p=synfig.git Fix 2120629: "circles with large feather and zero radius are invisible". Only shortcut zero-radius circles if they're not inverted and have no feathering. git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2062 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-core/trunk/src/modules/mod_geometry/circle.cpp b/synfig-core/trunk/src/modules/mod_geometry/circle.cpp index c9b1292..f5ad99b 100644 --- a/synfig-core/trunk/src/modules/mod_geometry/circle.cpp +++ b/synfig-core/trunk/src/modules/mod_geometry/circle.cpp @@ -306,7 +306,7 @@ Circle::FALLOFF_FUNC *Circle::GetFalloffFunc()const Color Circle::get_color(Context context, const Point &point)const { - if(radius==0 || is_disabled()) + if(is_disabled() || (radius==0 && invert==false && !feather)) return context.get_color(point); @@ -415,7 +415,7 @@ bool Circle::accelerated_render(Context context,Surface *surface,int quality, const RendDesc &renddesc, ProgressCallback *cb)const { // trivial case - if(is_disabled() || (radius==0 && invert==false)) + if(is_disabled() || (radius==0 && invert==false && !feather)) return context.accelerated_render(surface,quality, renddesc, cb); // Another trivial case