Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/scene/batching/batch-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ class BatchManager {

insert(type, groupId, node) {
const group = this._batchGroups[groupId];
Debug.assert(group, `Invalid batch ${groupId} insertion`);
Debug.assert(group, `Invalid batch ${groupId} insertion with node: "${node.name}"`);

if (group) {
if (group._obj[type].indexOf(node) < 0) {
Expand All @@ -246,7 +246,7 @@ class BatchManager {

remove(type, groupId, node) {
const group = this._batchGroups[groupId];
Debug.assert(group, `Invalid batch ${groupId} insertion`);
Debug.assert(group, `Invalid batch ${groupId} removal with node: "${node.name}"`);

if (group) {
const idx = group._obj[type].indexOf(node);
Expand Down