splits=5;
drag=0.1;
size=0.015;
splits=5;
drag=0.1;
size=0.015;
sync();
size_as_alpha=false;
}
sync();
size_as_alpha=false;
}
void
Plant::sync()const
{
void
Plant::sync()const
{
+ Mutex::Lock lock(mutex);
+ if (!needs_sync_) return;
particle_list.clear();
bounding_rect=Rect::zero();
particle_list.clear();
bounding_rect=Rect::zero();
bool size_as_alpha;
mutable bool needs_sync_;
bool size_as_alpha;
mutable bool needs_sync_;
+ mutable synfig::Mutex mutex;
void branch(int n, int depth,float t, float stunt_growth, synfig::Point position,synfig::Vector velocity)const;
void branch(int n, int depth,float t, float stunt_growth, synfig::Point position,synfig::Vector velocity)const;