Skip to content

Commit

Permalink
fix: 修复复合图层从场景中移除 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lvisei committed Oct 25, 2022
1 parent 6e37f16 commit 94b1c47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/composite-layers/src/core/layer-group.ts
Expand Up @@ -53,7 +53,7 @@ export class LayerGroup extends EventEmitter implements ILayerGroup {
*/
public remove() {
if (this.scene) {
this.removeAllLayer();
this.getLayers().forEach((layer) => layer.remove());
}
}

Expand Down

0 comments on commit 94b1c47

Please sign in to comment.