don't load children of proxy nodes until proxy is replaced with real node.
This commit is contained in:
parent
a18d246033
commit
635aaa3a34
@ -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;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user