We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01f4b4c commit 0c4e410Copy full SHA for 0c4e410
src/utils/exportUtils.js
@@ -98,11 +98,11 @@ export function generateExportMesh(state, options = {}) {
98
objectGeometry.mergeVertices();
99
objectGeometry.applyMatrix(new THREE.Matrix4().multiplyMatrices(objectMatrix, matrix));
100
101
+ const materialIndex = materials.length;
102
const exportMaterial = new THREE.MeshBasicMaterial({ color: material.color.getHex() });
103
exportMaterial.side = shapeData.fill ? THREE.FrontSide : THREE.DoubleSide;
104
materials.push(exportMaterial);
105
- const materialIndex = materials.length;
106
if (unionGeometry) {
107
objectGeometry = new THREE_BSP(objectGeometry, materialIndex);
108
if (exportGeometry) {
0 commit comments