Ensure clearActiveBatches runs only when no batches are present
This commit is contained in:
@@ -324,9 +324,8 @@ export class FoliageInstancedRenderer {
|
|||||||
quality: this.quality
|
quality: this.quality
|
||||||
});
|
});
|
||||||
|
|
||||||
this.clearActiveBatches();
|
|
||||||
|
|
||||||
if (batches.length === 0) {
|
if (batches.length === 0) {
|
||||||
|
this.clearActiveBatches();
|
||||||
this.onRebuilt?.();
|
this.onRebuilt?.();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user