diff options
author | David Robillard <d@drobilla.net> | 2007-02-11 04:03:20 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-02-11 04:03:20 +0000 |
commit | 9be91674f5de3da9d27b6afcdf9d76d27f5b40cb (patch) | |
tree | 9841651284004afffa84a29b08c08b43b7a119e9 /src/engine | |
parent | da3ac16cbfbf66edebe929f8d9bf7d76ab24dd74 (diff) | |
download | machina-9be91674f5de3da9d27b6afcdf9d76d27f5b40cb.tar.gz machina-9be91674f5de3da9d27b6afcdf9d76d27f5b40cb.tar.bz2 machina-9be91674f5de3da9d27b6afcdf9d76d27f5b40cb.zip |
Machina animation.
git-svn-id: http://svn.drobilla.net/lad/machina@303 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine')
-rw-r--r-- | src/engine/Machine.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/engine/Machine.cpp b/src/engine/Machine.cpp index 476e3d1..dbb212c 100644 --- a/src/engine/Machine.cpp +++ b/src/engine/Machine.cpp @@ -130,13 +130,14 @@ Machine::run(FrameCount nframes) bool entered = false; if ( ! _nodes.empty()) { for (Nodes::const_iterator n = _nodes.begin(); n != _nodes.end(); ++n) { + + assert( ! (*n)->is_active()); + if ((*n)->is_initial()) { (*n)->enter(0); entered = true; - } else { - if ((*n)->is_active()) - (*n)->exit(0); } + } } if (!entered) { |