Skip to content

Commit 78f4f1c

Browse files
committed
Derp
1 parent 2349c2d commit 78f4f1c

File tree

5 files changed

+10
-16
lines changed

5 files changed

+10
-16
lines changed

build/geo-three.js

Lines changed: 4 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/geo-three.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/MapView.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ export class MapView extends Mesh
157157

158158
this.root.mapView = this;
159159
this.add(this.root);
160+
this.root.initialize();
160161
}
161162
}
162163

source/lod/LODRaycast.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,10 @@ export class LODRaycast implements LODControl
8787
if (distance > this.thresholdUp)
8888
{
8989
node.subdivide();
90-
return;
9190
}
92-
else if (distance < this.thresholdDown)
91+
else if (distance < this.thresholdDown && node.parentNode)
9392
{
94-
if (node.parentNode !== null)
95-
{
96-
node.parentNode.simplify();
97-
}
98-
return;
93+
node.parentNode.simplify();
9994
}
10095
}
10196
}

source/nodes/MapNode.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,6 @@ export abstract class MapNode extends Mesh
135135
* For a quad-tree this value is 4.
136136
*/
137137
public static childrens: number = 4;
138-
139-
140138

141139
public constructor(parentNode: MapNode = null, mapView: MapView = null, location: number = QuadTreePosition.root, level: number = 0, x: number = 0, y: number = 0, geometry: BufferGeometry = null, material: Material = null)
142140
{
@@ -246,6 +244,8 @@ export abstract class MapNode extends Mesh
246244

247245
// @ts-ignore
248246
this.material.map = texture;
247+
// @ts-ignore
248+
this.material.needsUpdate = true;
249249
}
250250
catch (e)
251251
{

0 commit comments

Comments
 (0)