/* === S Y N F I G ========================================================= */
/*! \file plant.cpp
-** \brief Template
+** \brief Implementation of the "Plant" layer
**
** $Id$
**
SYNFIG_LAYER_INIT(Plant);
SYNFIG_LAYER_SET_NAME(Plant,"plant");
-SYNFIG_LAYER_SET_LOCAL_NAME(Plant,_("Plant"));
-SYNFIG_LAYER_SET_CATEGORY(Plant,_("Other"));
+SYNFIG_LAYER_SET_LOCAL_NAME(Plant,N_("Plant"));
+SYNFIG_LAYER_SET_CATEGORY(Plant,N_("Other"));
SYNFIG_LAYER_SET_VERSION(Plant,"0.1");
SYNFIG_LAYER_SET_CVS_ID(Plant,"$Id$");
else if (step > 1)
step=1;
});
- IMPORT_PLUS(splits,needs_sync_=true);
+ IMPORT_PLUS(splits,{
+ needs_sync_=true;
+ if (splits < 1)
+ splits = 1;
+ });
IMPORT_PLUS(sprouts,needs_sync_=true);
IMPORT_PLUS(random_factor,needs_sync_=true);
IMPORT_PLUS(drag,needs_sync_=true);
const Real pw = (br[0] - tl[0]) / w;
const Real ph = (br[1] - tl[1]) / h;
+ if (isinf(pw) || isinf(ph))
+ return true;
+
if(needs_sync_==true)
sync();