aboutsummaryrefslogtreecommitdiffstats
path: root/src/classes/share
diff options
context:
space:
mode:
authorChien Yang <[email protected]>2007-12-05 19:28:18 +0000
committerChien Yang <[email protected]>2007-12-05 19:28:18 +0000
commit1a5840a6caf5a85b8b4ed9648977b90192731c1b (patch)
treecb6938453cfe85d40c128f5c2d651e798ed3b121 /src/classes/share
parent124cd55e47761ec18be4131752132a2e20d5108b (diff)
Issue number: 555
Obtained from: dutchiedave Submitted by: dutchiedave Reviewed by: jada Fix to issue 555 - Muting a PointSound causes a ClassCastException git-svn-id: https://svn.java.net/svn/j3d-core~svn/trunk@877 ba19aa83-45c5-6ac9-afd3-db810772062c
Diffstat (limited to 'src/classes/share')
-rw-r--r--src/classes/share/javax/media/j3d/PointSoundRetained.java11
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);
+ }
}
}