diff --git a/engine/src/blender/com/jme3/scene/plugins/blender/curves/CurvesHelper.java b/engine/src/blender/com/jme3/scene/plugins/blender/curves/CurvesHelper.java index b7a224ae3..08aabb87a 100644 --- a/engine/src/blender/com/jme3/scene/plugins/blender/curves/CurvesHelper.java +++ b/engine/src/blender/com/jme3/scene/plugins/blender/curves/CurvesHelper.java @@ -421,6 +421,9 @@ public class CurvesHelper extends AbstractBlenderHelper { * @return scale on the pointed place along the curve */ protected float getTaperScale(Spline taper, float percent) { + if(taper == null) { + return 1;//return scale = 1 if no taper is applied + } percent = FastMath.clamp(percent, 0, 1); List segmentLengths = taper.getSegmentsLength(); float percentLength = taper.getTotalLength() * percent;