[Node] Refactored reloadnodes and syncnodes

- removed reloadnodes
- moved LoadNodeRemotePreset to syncnodes
This commit is contained in:
/dev/root 2016-11-16 18:37:44 +01:00
parent bb34e0416f
commit 79f1b2bd44

View File

@ -866,6 +866,8 @@ namespace Components
{
Logger::Print("Resynchronizing nodes...\n");
Node::LoadNodeRemotePreset();
std::lock_guard<std::mutex> _(Node::NodeMutex);
for (auto& node : Node::Nodes)
{
@ -876,13 +878,6 @@ namespace Components
}
});
Command::Add("reloadnodes", [](Command::Params)
{
Logger::Print("Reload remote preset nodes...\n");
Node::LoadNodeRemotePreset();
});
// Install frame handlers
QuickPatch::OnFrame(Node::FrameHandler);