public void UpdateOutput(string outputId, string value, string name = null)
{
Output output = GetOutput(outputId);
if (output == null)
{
LogEngineError($"Can`t update output [{outputId}]. Does not exist.");
return;
}
if (name != null && name != output.Name)
{
output.Name = name;
Node node = GetOutputOwner(output);
UpdateNodeInDb(node);
UpdateNodeInEditor(node);
}
output.Value = value;
}