Put a mutex around Plant::sync() to stop 2 threads running it at the same time. ...
[synfig.git] / synfig-core / trunk / src / modules / mod_particle / plant.h
index 54dafe4..4f03541 100644 (file)
@@ -83,6 +83,7 @@ private:
 
        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;