From 710afc90b9c3a85b01a3dae2052ea19ad4b79f38 Mon Sep 17 00:00:00 2001 From: btzr-io Date: Sun, 19 Aug 2018 12:40:51 -0600 Subject: [PATCH] revert flatShading initial state --- src/renderer/component/viewers/threeViewer/index.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/component/viewers/threeViewer/index.jsx b/src/renderer/component/viewers/threeViewer/index.jsx index b07876d8e..0f4afb433 100644 --- a/src/renderer/component/viewers/threeViewer/index.jsx +++ b/src/renderer/component/viewers/threeViewer/index.jsx @@ -210,7 +210,7 @@ class ThreeViewer extends React.PureComponent { config.color = this.materialColor; // Reset material this.material.color.set(config.color); - this.material.flatShading = false; + this.material.flatShading = true; this.material.shininess = 30; this.material.wireframe = false; // Reset autoRotate @@ -397,7 +397,7 @@ class ThreeViewer extends React.PureComponent { // Create model material this.material = new THREE.MeshPhongMaterial({ depthWrite: true, - flatShading: false, + flatShading: true, vertexColors: THREE.FaceColors, });