don't load children of proxy nodes until proxy is replaced with real node.

This commit is contained in:
m-schuetz 2020-08-05 14:19:56 +02:00
parent a18d246033
commit 635aaa3a34

View File

@ -118,6 +118,7 @@ export class NodeLoader{
Potree.numNodesLoading--;
console.log(`failed to load ${node.name}`);
console.log(e);
console.log(`trying again!`);
}
}
@ -165,6 +166,10 @@ export class NodeLoader{
current.nodeType = type;
if(current.nodeType === 2){
continue;
}
for(let childIndex = 0; childIndex < 8; childIndex++){
let childExists = ((1 << childIndex) & childMask) !== 0;