From: dooglus Date: Sat, 8 Sep 2007 23:24:40 +0000 (+0000) Subject: Don't keep trying to sync() a plant layer if its bline has less than 2 points. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=bdb2a02c99f8b219519ef0acb5101407d16af089;p=synfig.git 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 --- 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;