projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
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
diff --git
a/synfig-core/trunk/src/modules/mod_particle/plant.h
b/synfig-core/trunk/src/modules/mod_particle/plant.h
index
54dafe4
..
4f03541
100644
(file)
--- a/
synfig-core/trunk/src/modules/mod_particle/plant.h
+++ b/
synfig-core/trunk/src/modules/mod_particle/plant.h
@@
-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;