Handle invisible nodes (temp)

This commit is contained in:
2026-04-22 10:34:27 +02:00
parent 26733a4b84
commit cabfe687e2
2 changed files with 5 additions and 1 deletions

View File

@@ -49,6 +49,7 @@ export const config = {
label: 'Teatro',
model: 'models/ssgp/Teatro_SSGP_Full_ConSottrazioni.glb',
opacity: 0.0,
isInvisible: true,
children: [
/*
{

View File

@@ -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) {