소스 검색

fix react issue

David Catuhe 6 년 전
부모
커밋
fea3d5c5ff
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      inspector/src/components/actionTabs/tabs/propertyGrids/meshes/meshPropertyGridComponent.tsx

+ 1 - 1
inspector/src/components/actionTabs/tabs/propertyGrids/meshes/meshPropertyGridComponent.tsx

@@ -111,7 +111,7 @@ export class MeshPropertyGridComponent extends React.Component<IMeshPropertyGrid
         const scene = mesh.getScene();
 
         const displayNormals = mesh.material != null && mesh.material.getClassName() === "NormalMaterial";
-        const renderNormalVectors = mesh.metadata && mesh.metadata.normalLines;
+        const renderNormalVectors = (mesh.metadata && mesh.metadata.normalLines) ? true : false;
 
         return (
             <div className="pane">