aboutsummaryrefslogtreecommitdiffstats
path: root/src/classes/share
diff options
context:
space:
mode:
Diffstat (limited to 'src/classes/share')
-rw-r--r--src/classes/share/javax/media/j3d/ViewPlatformRetained.java19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/classes/share/javax/media/j3d/ViewPlatformRetained.java b/src/classes/share/javax/media/j3d/ViewPlatformRetained.java
index 47cb248..e3c8bf2 100644
--- a/src/classes/share/javax/media/j3d/ViewPlatformRetained.java
+++ b/src/classes/share/javax/media/j3d/ViewPlatformRetained.java
@@ -389,21 +389,20 @@ View[] getViewList() {
}
}
- /**
- * Use by BehaviorStructure to determine whether current
- * ViewPlatform is active or not.
- */
- boolean isActiveViewPlatform() {
+/**
+ * Use by BehaviorStructure to determine whether current
+ * ViewPlatform is active or not.
+ */
+boolean isActiveViewPlatform() {
View v[] = getViewList();
- if (v != null) {
- for (int i=0; i < v.length; i++) {
+ for (int i = 0; i < v.length; i++) {
if (v[i].active) {
- return true;
+ return true;
}
- }
}
+
return false;
- }
+}
void processSwitchChanged() {
reEvaluateView();