Don't keep trying to sync() a plant layer if its bline has less than 2 points.
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sat, 8 Sep 2007 23:24:40 +0000 (23:24 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sat, 8 Sep 2007 23:24:40 +0000 (23:24 +0000)
git-svn-id: http://svn.voria.com/code@639 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-core/trunk/src/modules/mod_particle/plant.cpp

index fe9a8b3..1e7a948 100644 (file)
@@ -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<synfig::BLinePoint>::const_iterator iter,next;