From 17a5e4ee35657ec52a5aca9b3a426052ef1cd01a Mon Sep 17 00:00:00 2001 From: dooglus Date: Fri, 7 Sep 2007 19:11:48 +0000 Subject: [PATCH] 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 --- synfig-core/trunk/src/modules/mod_particle/plant.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.7.4