Fix assertion for direction
Fix assertion for direction

CURA-3957

alephobjects/CuraEngine,alephobjects/CuraEngine,ROBO3D/CuraEngine,ROBO3D/CuraEngine,alephobjects/CuraEngine,Ultimaker/CuraEngine,Ultimaker/CuraEngine,ROBO3D/CuraEngine