summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/classes/share/com/sun/j3d/utils/behaviors/vp/WandViewBehavior.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/classes/share/com/sun/j3d/utils/behaviors/vp/WandViewBehavior.java b/src/classes/share/com/sun/j3d/utils/behaviors/vp/WandViewBehavior.java
index 66e2842..42882d0 100644
--- a/src/classes/share/com/sun/j3d/utils/behaviors/vp/WandViewBehavior.java
+++ b/src/classes/share/com/sun/j3d/utils/behaviors/vp/WandViewBehavior.java
@@ -3435,7 +3435,11 @@ public class WandViewBehavior extends ViewPlatformBehavior {
* nominal sensor transform
*/
public void getNominalSensorRotation(Transform3D t3d) {
- t3d.set(nominalSensorRotation) ;
+ if (nominalSensorRotation != null) {
+ t3d.set(nominalSensorRotation);
+ } else {
+ t3d.setIdentity();
+ }
}
/**