Dome: fix crash when center = null

experimental
shadowislord 10 years ago
parent 26f702cc91
commit fa324cad8f
  1. 2
      jme3-core/src/main/java/com/jme3/scene/shape/Dome.java

@ -266,7 +266,7 @@ public class Dome extends Mesh {
vars.release();
// pole
vb.put(center.x).put(center.y + radius).put(center.z);
vb.put(this.center.x).put(this.center.y + radius).put(this.center.z);
nb.put(0).put(insideView ? -1 : 1).put(0);
tb.put(0.5f).put(1.0f);

Loading…
Cancel
Save