#23 修复绘制层级问题

This commit is contained in:
YHH
2020-08-08 14:43:43 +08:00
parent 3492bbdf5e
commit a39b98b5d9
6 changed files with 9 additions and 6 deletions

View File

@@ -58,7 +58,7 @@ module es {
public addToRenderLayerList(component: IRenderable, renderLayer: number) {
let list = this.componentsWithRenderLayer(renderLayer);
if (!list.contains(component)) {
if (list.contains(component)) {
console.warn("组件呈现层列表已经包含此组件");
return;
}
@@ -96,6 +96,7 @@ module es {
}
this._unsortedRenderLayers.length = 0;
this.updateEgretList();
}
}