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