|
@@ -179,7 +179,7 @@ public class Led3D extends MouseAdapter {
|
179
|
179
|
Primitive p = (Primitive)result.getNode(PickResult.PRIMITIVE);
|
180
|
180
|
if (p != null) {
|
181
|
181
|
// p is now a Primitive that the user clicked
|
182
|
|
- if (p.getClass().getName().equals("com.sun.j3d.utils.geometry.Cylinder")) {
|
|
182
|
+ if (p.getClass().getName().equals("com.sun.j3d.utils.geometry.Sphere")) {
|
183
|
183
|
// p is a Cylinder. Our LEDs are Spheres, so p.equals(led[x][y][z]) does not find anything...
|
184
|
184
|
for (int x = 0; x < 8; x++) {
|
185
|
185
|
for (int y = 0; y < 8; y++) {
|