mirror of
https://github.com/4sval/FModel.git
synced 2026-03-26 11:45:22 -05:00
Exclude SaveCachedPose from Pass 1 upstream BFS to fix layer assignment
Co-authored-by: LoogLong <86428208+LoogLong@users.noreply.github.com>
This commit is contained in:
parent
164d065b05
commit
8da0986147
|
|
@ -202,6 +202,8 @@ public class AnimGraphViewModel
|
|||
|
||||
// Pass 1: Build graph layers from AnimGraphNode_Root nodes.
|
||||
// Each _Root node defines an animation blueprint layer (e.g. "AnimGraph").
|
||||
// SaveCachedPose nodes are excluded so their input chains don't get pulled
|
||||
// into Root layers; Pass 3 assigns SaveCachedPose nodes to the correct layer.
|
||||
var graphRoots = vm.Nodes
|
||||
.Where(n => n.ExportType.EndsWith("_Root", StringComparison.OrdinalIgnoreCase))
|
||||
.ToList();
|
||||
|
|
@ -210,7 +212,8 @@ public class AnimGraphViewModel
|
|||
foreach (var rootNode in graphRoots)
|
||||
{
|
||||
if (!assigned.Add(rootNode)) continue;
|
||||
var layerNodes = CollectUpstream(rootNode, upstreamOf, assigned);
|
||||
var layerNodes = CollectUpstream(rootNode, upstreamOf, assigned,
|
||||
excludeNode: IsSaveCachedPoseNode);
|
||||
AddLayer(vm, layerNodes, layerIndex++);
|
||||
primaryGraphLayer ??= vm.Layers[^1];
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user