1 package org.simantics.proconf.g3d.tools;
\r
3 import java.util.ArrayList;
\r
5 import com.jme.scene.Node;
\r
6 import com.jme.scene.Spatial;
\r
8 public class ScenegraphLockTraverser {
\r
11 public ScenegraphLockTraverser(Node root, boolean lock) {
\r
17 private void lock(Spatial spatial) {
\r
22 if (spatial instanceof Node) {
\r
23 Node node = (Node)spatial;
\r
24 ArrayList<Spatial> children = node.getChildren();
\r
25 for (Spatial s : children) {
\r