diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/classes/share/javax/media/j3d/PointSoundRetained.java | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/classes/share/javax/media/j3d/PointSoundRetained.java b/src/classes/share/javax/media/j3d/PointSoundRetained.java index a0b3dd2..8c7c9f3 100644 --- a/src/classes/share/javax/media/j3d/PointSoundRetained.java +++ b/src/classes/share/javax/media/j3d/PointSoundRetained.java @@ -254,10 +254,13 @@ class PointSoundRetained extends SoundRetained { } if ((component & POSITION_DIRTY_BIT) != 0) { for (int i = 0; i < numSnds; i++) { - PointSoundRetained point = (PointSoundRetained)mSnds[i]; - point.position = (Point3f)objs[4]; - point.getLastLocalToVworld().transform(point.position, - point.xformPosition); + PointSoundRetained point = (PointSoundRetained) mSnds[i]; + Object o = objs[4]; + if (o instanceof Point3f) { + point.position = (Point3f) objs[4]; + point.getLastLocalToVworld().transform(point.position, + point.xformPosition); + } } } |