From e3030cb0a0a5530d401f35eacada8515ba139eb8 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 3 Mar 2026 14:05:28 +0000 Subject: [PATCH] Address code review: document rootNodePropName param, use discard for unused key Co-authored-by: LoogLong <86428208+LoogLong@users.noreply.github.com> --- FModel/ViewModels/AnimGraphViewModel.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/FModel/ViewModels/AnimGraphViewModel.cs b/FModel/ViewModels/AnimGraphViewModel.cs index 61f7789d..2040cc10 100644 --- a/FModel/ViewModels/AnimGraphViewModel.cs +++ b/FModel/ViewModels/AnimGraphViewModel.cs @@ -315,8 +315,8 @@ public class AnimGraphViewModel /// /// Creates an for a state machine state sub-graph - /// and stores it in keyed by the - /// root node's property name (from StateRootNodeIndex). + /// and stores it in keyed by + /// (the root node's property name from StateRootNodeIndex). /// private static void AddStateSubGraph(AnimGraphViewModel vm, List nodes, string rootNodePropName, int index) { @@ -353,7 +353,7 @@ public class AnimGraphViewModel } // Rename state sub-graphs whose nodes belong to a state machine - foreach (var (key, layer) in vm.StateSubGraphs) + foreach (var (_, layer) in vm.StateSubGraphs) { var smName = string.Empty; foreach (var node in layer.Nodes)