Handle invisible nodes (temp)
This commit is contained in:
@@ -49,6 +49,7 @@ export const config = {
|
||||
label: 'Teatro',
|
||||
model: 'models/ssgp/Teatro_SSGP_Full_ConSottrazioni.glb',
|
||||
opacity: 0.0,
|
||||
isInvisible: true,
|
||||
children: [
|
||||
/*
|
||||
{
|
||||
|
||||
@@ -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