Mesh: avoid NPE in getMorphTargets() when there are no targets (#1231)

fix-openal-soft-deadlink
Stephen Gold 5 years ago committed by GitHub
parent 98f6d326e1
commit 8d9d091576
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      jme3-core/src/main/java/com/jme3/scene/Mesh.java

@ -1527,8 +1527,12 @@ public class Mesh implements Savable, Cloneable, JmeCloneable {
}
public MorphTarget[] getMorphTargets() {
if (morphTargets == null) {
return new MorphTarget[0];
} else {
return morphTargets.getArray();
}
}
/**
* Get the name of all morphs in order.

Loading…
Cancel
Save