From: dooglus Date: Fri, 7 Sep 2007 19:11:48 +0000 (+0000) Subject: Allow plant blines to have 2 points in them. Previously a minimum of 3 was enforced... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=17a5e4ee35657ec52a5aca9b3a426052ef1cd01a;hp=ad5f0566c633041148043fc60cb0103a7516a5e3;p=synfig.git Allow plant blines to have 2 points in them. Previously a minimum of 3 was enforced, even though the comment says "Bline must have at least 2 points in it". git-svn-id: http://svn.voria.com/code@621 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-core/trunk/src/modules/mod_particle/plant.cpp b/synfig-core/trunk/src/modules/mod_particle/plant.cpp index 66d78b8..bb23a39 100644 --- a/synfig-core/trunk/src/modules/mod_particle/plant.cpp +++ b/synfig-core/trunk/src/modules/mod_particle/plant.cpp @@ -145,7 +145,7 @@ Plant::calc_bounding_rect()const bounding_rect=Rect::zero(); // Bline must have at least 2 points in it - if(bline.size()<=2) + if(bline.size()<2) return; next=bline.begin(); @@ -177,7 +177,7 @@ Plant::sync()const bounding_rect=Rect::zero(); // Bline must have at least 2 points in it - if(bline.size()<=2) + if(bline.size()<2) return; std::vector::const_iterator iter,next;