mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-11 18:34:58 +01:00
Bugfix Callbacks
Added duration to SetAlpha callback. Saving and loading Play callback.
This commit is contained in:
@@ -1151,11 +1151,22 @@ void SessionLoader::visit (SourceCallback &)
|
||||
{
|
||||
}
|
||||
|
||||
void SessionLoader::visit (Play &c)
|
||||
{
|
||||
bool p = true;
|
||||
xmlCurrent_->QueryBoolAttribute("play", &p);
|
||||
c.setValue(p);
|
||||
}
|
||||
|
||||
void SessionLoader::visit (SetAlpha &c)
|
||||
{
|
||||
float a = 0.f;
|
||||
xmlCurrent_->QueryFloatAttribute("alpha", &a);
|
||||
c.setValue(a);
|
||||
|
||||
float d = 0.f;
|
||||
xmlCurrent_->QueryFloatAttribute("duration", &d);
|
||||
c.setDuration(d);
|
||||
}
|
||||
|
||||
void SessionLoader::visit (SetDepth &c)
|
||||
|
||||
Reference in New Issue
Block a user