Animation Sharing Plugin blend state not created

My animation sharing setup(Animation Sharing Plugin) is not creating blend states. I think i have it setup correctly, but it still wont work. I have looked into AnimationSharingManager.cpp to see if there is some range check, or some other condition, that prevents this from working. Instead I found strange “bug”.

There is const uint8 CurrentState variable(its a state index). after some checks code will arive at line 1414 and

const uint32 OnDemandIndex = bSetupInstance ? SetupOnDemandInstance(CurrentState) : INDEX_NONE;

is called. And the the CurrentState value is changed to a “random” value! This new value is often out of range as state index.

It seems odd to me. Can i get some feedback on this?? Is this a bug or i completely overlooked something? PS: I can upload sample project with this behavior.

For setting up this new plugin for the first time I disabled “use blend transition” in the sharing setup and forgot to switch it back on later when I wanted to test blending.

Maybe you made the same mistake?

Also I forgot to override getenum in GetAnimationStateEnum(). This was still on 4.22.

by the way, your question could also be related to a question i just asked here :slight_smile:
link text