# Animation Sharing Plugin blend state not created

**URL:** <https://forums.unrealengine.com/t/animation-sharing-plugin-blend-state-not-created/453583>\
**Category:** Plugins\
**Tags:** bug, unreal-engine, Plugins, question\
**Created:** [August 8, 2019, 5:10pm UTC](https://forums.unrealengine.com/t/animation-sharing-plugin-blend-state-not-created/453583 "2019-08-08T17:10:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SerzaNT](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SerzaNT](https://forums.unrealengine.com/u/SerzaNT)\
**Post date:** [August 8, 2019, 5:10pm UTC](https://forums.unrealengine.com/t/animation-sharing-plugin-blend-state-not-created/453583/1 "2019-08-08T17:10:30Z")

</div>

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.

 ![284559-before.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/f/b/1fb0a6a6a161a01fe88b77694dcee20a80fca8d3.png)

 ![284560-after.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/e/3/fe3ed7e03d26bd8e1e94bcfe892d97b9a688384c.png)

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.

---

<div class="post-metadata">

**Author:** ![spaceharry](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@spaceharry](https://forums.unrealengine.com/u/spaceharry)\
**Post date:** [October 26, 2019, 6:11pm UTC](https://forums.unrealengine.com/t/animation-sharing-plugin-blend-state-not-created/453583/2 "2019-10-26T18:11:22Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![spaceharry](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@spaceharry](https://forums.unrealengine.com/u/spaceharry)\
**Post date:** [November 5, 2019, 10:32pm UTC](https://forums.unrealengine.com/t/animation-sharing-plugin-blend-state-not-created/453583/3 "2019-11-05T22:32:07Z")

</div>

by the way, your question could also be related to a question i just asked here 🙂  
[link text](https://answers.unrealengine.com/questions/933695/animation-sharing-plugin-ondemand-playrate.html)
