Description

Certain codepaths in USkeletalMeshComponent::InitializeAnimScriptInstance can cause linked anim graphs that are running in Post Process anim bps to be unlinked.  The problem only occurs when the linked graphs are set via the BeginPlay event in the post process anim graph. 

This is because it's possible for InitializeAnimScriptInstance to initialize the post process anim instance before it initializes the main anim instance.  But when the main anim instance is initialized, all linked graphs (including those linked via a post process anim instance) are cleared.

Steps to Reproduce
  1. Open the attached project
  2. Open Content/L_15415068
  3. PIE
    1. Note how the run animation is being played.  This is via the linked anim graph that was linked from BeginPlay in the post process anim blueprint (ABP_15415068_PP)
  4. Hit the X key (This swaps the mesh to a duplicate mesh reinitializing the anim instances)
    1. Expected behaviour: The run animation is still playing because it was relinked in the post process anim bp BeginPlay event
    2. Actual behaviour: The idle animation is playing because the linked graphs on the mesh were reset, after being relinked, as part of the reinitialization process

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-234750 in the post.

0
Login to Vote

Unresolved
CreatedDec 16, 2024
UpdatedDec 17, 2024
View Jira Issue