|
@@ -125,10 +125,6 @@
|
|
|
|
|
|
this._currentIndex = index;
|
|
this._currentIndex = index;
|
|
|
|
|
|
- if (observable && !renderingGroup) {
|
|
|
|
- renderingGroup = this._fetchRenderingGroup(index);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
if (renderingGroup) {
|
|
if (renderingGroup) {
|
|
let renderingGroupMask = 0;
|
|
let renderingGroupMask = 0;
|
|
|
|
|
|
@@ -195,12 +191,6 @@
|
|
var mesh = subMesh.getMesh();
|
|
var mesh = subMesh.getMesh();
|
|
var renderingGroupId = mesh.renderingGroupId || 0;
|
|
var renderingGroupId = mesh.renderingGroupId || 0;
|
|
|
|
|
|
- this._fetchRenderingGroup(renderingGroupId);
|
|
|
|
-
|
|
|
|
- this._renderingGroups[renderingGroupId].dispatch(subMesh);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- private _fetchRenderingGroup(renderingGroupId: number): RenderingGroup {
|
|
|
|
if (!this._renderingGroups[renderingGroupId]) {
|
|
if (!this._renderingGroups[renderingGroupId]) {
|
|
this._renderingGroups[renderingGroupId] = new RenderingGroup(renderingGroupId, this._scene,
|
|
this._renderingGroups[renderingGroupId] = new RenderingGroup(renderingGroupId, this._scene,
|
|
this._customOpaqueSortCompareFn[renderingGroupId],
|
|
this._customOpaqueSortCompareFn[renderingGroupId],
|
|
@@ -209,7 +199,7 @@
|
|
);
|
|
);
|
|
}
|
|
}
|
|
|
|
|
|
- return this._renderingGroups[renderingGroupId];
|
|
|
|
|
|
+ this._renderingGroups[renderingGroupId].dispatch(subMesh);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|