1 Commits

Author SHA1 Message Date
cabfe687e2 Handle invisible nodes (temp) 2026-04-22 10:34:27 +02:00
2 changed files with 5 additions and 1 deletions

View File

@@ -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: [
/* /*
{ {

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(); 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) {