Merge pull request #1109 from karanehra/fix-1051

Fix for 1051
accellbaker
Riccardo Balbo 6 years ago committed by GitHub
commit 97049630eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      jme3-core/src/main/java/com/jme3/audio/AudioNode.java

@ -722,7 +722,7 @@ public class AudioNode extends Node implements AudioSource {
@Override
public void updateGeometricState() {
super.updateGeometricState();
if (channel < 0 || this.getParent() == null) return;
if (channel < 0) return;
Vector3f currentWorldTranslation = worldTransform.getTranslation();
if (!previousWorldTranslation.equals(currentWorldTranslation)) {
getRenderer().updateSourceParam(this, AudioParam.Position);

Loading…
Cancel
Save