Bugfix: fixed a bug that caused Bezier objects to use only the vertices

of its first bezier line (out of many).
cleanup_build_scripts
jmekaelthas 9 years ago
parent 153cb27d78
commit 7e185b25df
  1. 2
      jme3-blender/src/main/java/com/jme3/scene/plugins/blender/curves/CurvesTemporalMesh.java

@ -180,8 +180,8 @@ public class CurvesTemporalMesh extends TemporalMesh {
if (bevelObject != null && beziers.size() > 0) { if (bevelObject != null && beziers.size() > 0) {
this.append(this.applyBevelAndTaper(this, bevelObject, taperObject, blenderContext)); this.append(this.applyBevelAndTaper(this, bevelObject, taperObject, blenderContext));
} else { } else {
int originalVerticesAmount = vertices.size();
for (BezierLine bezierLine : beziers) { for (BezierLine bezierLine : beziers) {
int originalVerticesAmount = vertices.size();
vertices.add(bezierLine.vertices[0]); vertices.add(bezierLine.vertices[0]);
Vector3f v = bezierLine.vertices[1].subtract(bezierLine.vertices[0]).normalizeLocal(); Vector3f v = bezierLine.vertices[1].subtract(bezierLine.vertices[0]).normalizeLocal();
float temp = v.x; float temp = v.x;

Loading…
Cancel
Save