fix constructor bug

This commit is contained in:
Kurt Hutten
2021-08-01 21:13:19 +10:00
parent 39cbdc749b
commit 5e14ad0829

View File

@@ -41,7 +41,7 @@ function CSG2Object3D(obj) {
let material = materialDef.def
if (color) {
const c = color
material = new materialDef.material({
material = materialDef.material({
color: new Color(c[0], c[1], c[2]),
flatShading: true,
opacity: c[3] === void 0 ? 1 : c[3],