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