运行环境新增了画布相关的属性

This commit is contained in:
fengjiayi
2025-03-22 18:14:48 +08:00
parent f99aff3c2c
commit cf7760ef84
29 changed files with 1179 additions and 1103 deletions

View File

@@ -96,7 +96,7 @@ namespace Serein.NodeFlow.Model
{
foreach (var nodeModel in ChildrenNode)
{
await nodeModel.Env.TakeOutNodeToContainerAsync(nodeModel.Guid);
await nodeModel.Env.TakeOutNodeToContainerAsync(nodeModel.CanvasGuid, nodeModel.Guid);
}
DataNode = null;
}
@@ -174,8 +174,11 @@ namespace Serein.NodeFlow.Model
/// </summary>
public override void Remove()
{
if (DataNode is null) {
return;
}
// 移除数据节点
_ = this.Env.RemoveNodeAsync(DataNode?.Guid);
_ = this.Env.RemoveNodeAsync(DataNode.CanvasGuid, DataNode.Guid);
}
}