BlueprintPure no use in animation state machine?

I convert an int to enum and use it for a transition rule in animation state machine. But the compiler complains that it’s not thread-safe.

But according the last section of this doc, I don’t seem to do anything against it. Graphing in Animation Blueprints in Unreal Engine | Unreal Engine 5.1 Documentation

Anyway, I changed to another method – do the dirty working in a BlueprintPure C++ function.

215290-func.png

But the compiler still thinks it’s not thread-safe.

I don’t think it’s against the doc above either. The doc clearly says blueprint pure functions are safe.

How do I int to enum convertion in animation state machine then?

are you sure you should even do such thing as converting an int to enum? it doesn’t seem to make sense to me. you can always just store an enum variable instead of int at the first place.
it could complain because int range is 2^32, which can yield you an out-of-range error on converting to enum (which probably doesn’t even exceeds 20 values)