.. | .. |
---|
25 | 25 | // return 1; |
---|
26 | 26 | // } |
---|
27 | 27 | |
---|
| 28 | + boolean IsSwitch() |
---|
| 29 | + { |
---|
| 30 | + return CameraPane.SWITCH && !this.link2master; |
---|
| 31 | + } |
---|
| 32 | + |
---|
28 | 33 | public int size() |
---|
29 | 34 | { |
---|
30 | | - if (CameraPane.SWITCH) |
---|
| 35 | + if (IsSwitch()) |
---|
31 | 36 | { |
---|
32 | 37 | if (super.size() > 0) |
---|
33 | 38 | return 1; |
---|
.. | .. |
---|
88 | 93 | |
---|
89 | 94 | public Object3D reserve(int i) |
---|
90 | 95 | { |
---|
91 | | - if (!CameraPane.SWITCH) |
---|
| 96 | + if (!IsSwitch()) |
---|
92 | 97 | return super.reserve(i); |
---|
93 | 98 | |
---|
94 | 99 | //assert(rnd == -1); |
---|
.. | .. |
---|
160 | 165 | |
---|
161 | 166 | public void release(int i) |
---|
162 | 167 | { |
---|
163 | | - if (!CameraPane.SWITCH) |
---|
| 168 | + if (!IsSwitch()) |
---|
164 | 169 | { |
---|
165 | 170 | super.release(i); |
---|
166 | 171 | return; |
---|