From bdb2a02c99f8b219519ef0acb5101407d16af089 Mon Sep 17 00:00:00 2001 From: dooglus Date: Sat, 8 Sep 2007 23:24:40 +0000 Subject: [PATCH] Don't keep trying to sync() a plant layer if its bline has less than 2 points. git-svn-id: http://svn.voria.com/code@639 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-core/trunk/src/modules/mod_particle/plant.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/synfig-core/trunk/src/modules/mod_particle/plant.cpp b/synfig-core/trunk/src/modules/mod_particle/plant.cpp index fe9a8b3..1e7a948 100644 --- a/synfig-core/trunk/src/modules/mod_particle/plant.cpp +++ b/synfig-core/trunk/src/modules/mod_particle/plant.cpp @@ -183,7 +183,10 @@ Plant::sync()const // Bline must have at least 2 points in it if(bline.size()<2) + { + needs_sync_=false; return; + } std::vector::const_iterator iter,next; -- 2.7.4