diff --git a/src/AnimGraphEditor/AnimGraphEditor.cc b/src/AnimGraphEditor/AnimGraphEditor.cc index c86d260..d600d1f 100644 --- a/src/AnimGraphEditor/AnimGraphEditor.cc +++ b/src/AnimGraphEditor/AnimGraphEditor.cc @@ -339,7 +339,10 @@ void AnimGraphEditorRenderSidebar( AnimGraphResource* current_graph_resource = sEditorState.hierarchyStack[sEditorState.hierarchyStackIndex]; current_graph_resource->RegisterBlendTreeOutputSocket( - "GraphFloatOutput"); + "GraphFloatOutput" + + std::to_string(current_graph_resource->m_blend_tree_resource + .GetGraphOutputNode() + ->m_virtual_socket_accessor->m_inputs.size())); } } @@ -375,7 +378,10 @@ void AnimGraphEditorRenderSidebar( AnimGraphResource* current_graph_resource = sEditorState.hierarchyStack[sEditorState.hierarchyStackIndex]; current_graph_resource->RegisterBlendTreeInputSocket( - "GraphFloatInput"); + "GraphFloatInput" + + std::to_string( + current_graph_resource->m_blend_tree_resource.GetGraphInputNode() + ->m_virtual_socket_accessor->m_outputs.size())); } } }