Compare commits
1 Commits
stimulus
...
cabfe687e2
| Author | SHA1 | Date | |
|---|---|---|---|
| cabfe687e2 |
@@ -49,6 +49,7 @@ export const config = {
|
|||||||
label: 'Teatro',
|
label: 'Teatro',
|
||||||
model: 'models/ssgp/Teatro_SSGP_Full_ConSottrazioni.glb',
|
model: 'models/ssgp/Teatro_SSGP_Full_ConSottrazioni.glb',
|
||||||
opacity: 0.0,
|
opacity: 0.0,
|
||||||
|
isInvisible: true,
|
||||||
children: [
|
children: [
|
||||||
/*
|
/*
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -88,6 +88,9 @@ function loadNodes(nodes) {
|
|||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Disable a node for picking (shadows, light probe etc.)
|
||||||
|
if (n.isInvisible) node.hide();
|
||||||
|
|
||||||
node.attachToRoot();
|
node.attachToRoot();
|
||||||
|
|
||||||
if (n.isMain) {
|
if (n.isMain) {
|
||||||
@@ -96,7 +99,7 @@ function loadNodes(nodes) {
|
|||||||
AppState.clipping.boundingSphere = node.getBound();
|
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) {
|
if (!AppState.clipping.boundingSphere) {
|
||||||
|
|||||||
Reference in New Issue
Block a user