Commit b5288867 authored by artificiel's avatar artificiel
Browse files

ClientPlayer: callback pour indiquer que la sequence est finie

parent 32ff3002
......@@ -49,10 +49,22 @@ class ClientPlayer : public AbstractClient
void update() override
{
if (cloud_player_.isThreadRunning()) {
cloud_player_.update_cloud();
cloud_player_.update_mesh();
index_.set(cloud_player_.get_current_frame());
} else {
if (playing_) {
playing_ = false;
if (cloud_player_.is_done_) {
cloud_player_.is_done_ = false;
if (looping_) {
playing_ = true;
}
}
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment