aboutsummaryrefslogtreecommitdiffstats
path: root/src/engine/machina
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-03-26 05:27:56 +0000
committerDavid Robillard <d@drobilla.net>2007-03-26 05:27:56 +0000
commit2124952b855e093d6253bfd763cd9ebfe69e9def (patch)
tree51c9913a3630676d97c2c2e0e84d990e5108560b /src/engine/machina
parent3dee4f8a64548dbb2aa11521e258865e5b93e9e3 (diff)
downloadmachina-2124952b855e093d6253bfd763cd9ebfe69e9def.tar.gz
machina-2124952b855e093d6253bfd763cd9ebfe69e9def.tar.bz2
machina-2124952b855e093d6253bfd763cd9ebfe69e9def.zip
Deleting selected states with delete key.
Fixed loading all states as initial. git-svn-id: http://svn.drobilla.net/lad/machina@378 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine/machina')
-rw-r--r--src/engine/machina/Node.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/engine/machina/Node.hpp b/src/engine/machina/Node.hpp
index 5181149..b4c72e2 100644
--- a/src/engine/machina/Node.hpp
+++ b/src/engine/machina/Node.hpp
@@ -66,6 +66,8 @@ public:
bool is_initial() const { return _is_initial; }
void set_initial(bool i) { _is_initial = i; }
+ bool is_selector() const { return _is_selector; }
+ void set_selector(bool i) { _is_selector = i; }
bool is_active() const { return _is_active; }
BeatTime enter_time() const { assert(_is_active); return _enter_time; }
BeatTime exit_time() const { assert(_is_active); return _enter_time + _duration; }
@@ -77,6 +79,7 @@ public:
private:
bool _is_initial;
+ bool _is_selector;
bool _is_active;
BeatTime _enter_time; ///< valid iff _is_active
BeatCount _duration;