Fix an index out of bounds exception when moving an
audio node that hasn't been played yet. git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7495 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
945683f432
commit
2f415f3919
@ -616,7 +616,7 @@ public class AudioNode extends Node {
|
|||||||
|
|
||||||
super.updateGeometricState();
|
super.updateGeometricState();
|
||||||
|
|
||||||
if (updatePos && renderer != null)
|
if (updatePos && channel >= 0)
|
||||||
renderer.updateSourceParam(this, AudioParam.Position);
|
renderer.updateSourceParam(this, AudioParam.Position);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user