BlendAction Runs on all layers instead of the layer specified

Hello i’m trying to use BlendSpace And BlendAction in JME 3.8 but everytime i run the BlendAction, it runs on all layers even if i set the layer name in “setCurrentAction” method.(normal actions runs fine).
is it a bug with animation system ? i already set the mask on BlendAction too but nothings changed.

Thanks.

Hey! Can you show an example code?

1 Like

Yes,this is the code i’m using right now.

       this.animComposer.makeLayer(ANIMATION_BODY_BOTTOM_LAYER, bodyBottomArmatureMask);

       this.runBlendSpace = new LinearBlendSpace(-3.14f, 3.14f);
       this.blendRunAction = this.runBlendAction = animComposer.actionBlended(ANIMATION_RUN_BLEND_ACTION, runBlendSpace, "Run_Backward", "Run_Backward_Left",
               "Run_Left", "Run_Forward_Left", "Run_Forward", "Run_Forward_Right",
               "Run_Right", "Run_Backward_Right", "Run_Backward");
       this.blendRunAction.setMask(bodyBottomArmatureMask);

       this.animComposer.setCurrentAction(currentAction, ANIMATION_BODY_BOTTOM_LAYER);```

It works with normal actions but not with BlendAction.seems like a bug i think ,not sure tho but i already set the mask.

I’ve just seen that here that i was created two "blendRunAction " and "runBlendAction ".i’ve removed the first one and no that was not the problem.