From 98a959008ada5202942c7bfdb4b0ccbb4432477e Mon Sep 17 00:00:00 2001 From: xiange Date: Thu, 4 Jan 2024 23:13:57 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix:=20losed=20style=20and=20tra?= =?UTF-8?q?nsparency?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/chili-three/src/threeVisualContext.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/chili-three/src/threeVisualContext.ts b/packages/chili-three/src/threeVisualContext.ts index 83d60fec..ab9c9d17 100644 --- a/packages/chili-three/src/threeVisualContext.ts +++ b/packages/chili-three/src/threeVisualContext.ts @@ -151,6 +151,8 @@ export class ThreeVisualContext implements IVisualContext { let modelShape = model.shape(); if (modelShape === undefined) return; let threeShape = new ThreeShape(modelShape); + threeShape.color = model.color; + threeShape.opacity = model.opacity; threeShape.matrix.copy(this.convertMatrix(model.matrix)); this.visualShapes.add(threeShape); this._shapeModelMap.set(threeShape, model);