Commit 3dd51ba4 authored by artificiel's avatar artificiel
Browse files

AbstractClient: n'update le data cloud/mesh que si la thread roule

parent 40752d65
......@@ -49,9 +49,11 @@ class ClientPlayer : public AbstractClient
void update() override
{
cloud_player_.update_cloud();
cloud_player_.update_mesh();
index_.set(cloud_player_.get_current_frame());
if (cloud_player_.isThreadRunning()) {
cloud_player_.update_cloud();
cloud_player_.update_mesh();
index_.set(cloud_player_.get_current_frame());
}
}
bool is_xyz_new() override { return playing_.get(); }
......
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