#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

@@ -4324,7 +4324,7 @@ var es;
};
RenderableComponentList.prototype.addToRenderLayerList = function (component, renderLayer) {
var list = this.componentsWithRenderLayer(renderLayer);
if (!list.contains(component)) {
if (list.contains(component)) {
console.warn("组件呈现层列表已经包含此组件");
return;
}
@@ -4353,6 +4353,7 @@ var es;
}
}
this._unsortedRenderLayers.length = 0;
this.updateEgretList();
}
};
RenderableComponentList.prototype.updateEgretList = function () {