Skip to content
Snippets Groups Projects
Commit dfdc4587 authored by alja's avatar alja Committed by Sergey Linev
Browse files

Simplify sending of BeginCahnges/EndChanges message

parent 244e8dd8
No related branches found
No related tags found
No related merge requests found
...@@ -243,16 +243,14 @@ void REveManager::DoRedraw3D() ...@@ -243,16 +243,14 @@ void REveManager::DoRedraw3D()
nlohmann::json jobj = {}; nlohmann::json jobj = {};
jobj["content"] = "BeginChanges"; jobj["content"] = "BeginChanges";
for (auto i = fConnList.begin(); i != fConnList.end(); ++i) fWebWindow->Send(0, jobj.dump());
fWebWindow->Send(i->fId, jobj.dump());
// Process changes in scenes. // Process changes in scenes.
fWorld ->ProcessChanges(); fWorld ->ProcessChanges();
fScenes->ProcessSceneChanges(); fScenes->ProcessSceneChanges();
jobj["content"] = "EndChanges"; jobj["content"] = "EndChanges";
for (auto i = fConnList.begin(); i != fConnList.end(); ++i) fWebWindow->Send(0, jobj.dump());
fWebWindow->Send(i->fId, jobj.dump());
fResetCameras = kFALSE; fResetCameras = kFALSE;
fDropLogicals = kFALSE; fDropLogicals = kFALSE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment