[Node] Refactored reloadnodes and syncnodes
- removed reloadnodes - moved LoadNodeRemotePreset to syncnodes
This commit is contained in:
parent
bb34e0416f
commit
79f1b2bd44
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user