Handle invisible nodes (temp)
This commit is contained in:
@@ -88,6 +88,9 @@ function loadNodes(nodes) {
|
||||
}));
|
||||
}
|
||||
|
||||
// Disable a node for picking (shadows, light probe etc.)
|
||||
if (n.isInvisible) node.hide();
|
||||
|
||||
node.attachToRoot();
|
||||
|
||||
if (n.isMain) {
|
||||
@@ -96,7 +99,7 @@ function loadNodes(nodes) {
|
||||
AppState.clipping.boundingSphere = node.getBound();
|
||||
}
|
||||
|
||||
AppState.nodes.push({id: n.label, active: true});
|
||||
AppState.nodes.push({id: n.label, active: n.isInvisible ? false: true});
|
||||
});
|
||||
|
||||
if (!AppState.clipping.boundingSphere) {
|
||||
|
||||
Reference in New Issue
Block a user