Skip to content

Commit

Permalink
Updated callback conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
pizza3 committed Jan 6, 2024
1 parent 72e62bb commit 170df76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/three/TilesRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ export class TilesRenderer extends TilesRendererBase {
cached.scene = scene;
cached.metadata = metadata;

if ( ! this.loading ) {
if ( ! this.loading && this.parseQueue.items.length > 0 ) {

if ( this.onLoadStart ) {

Expand All @@ -687,7 +687,7 @@ export class TilesRenderer extends TilesRendererBase {

}

if ( this.parseQueue.items.length === 0 && this.downloadQueue.items.length === this.parseQueue.items.length ) {
if ( this.loading && this.parseQueue.items.length === 0 && this.downloadQueue.items.length === this.parseQueue.items.length ) {

if ( this.onLoadComplete ) {

Expand Down

0 comments on commit 170df76

Please sign in to comment.