Skip to content

Commit ab7b70d

Browse files
authored
make dimensions decimals instead of inflate
1 parent 8080d86 commit ab7b70d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎apps/studio/src/studio/formats/project/BBModelExporter.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -375,10 +375,10 @@ const convertCube = (cube: DCMCube, positionCache: WorldPositionCache): CubeElem
375375
rescale: false,
376376
locked: false,
377377
from: from,
378-
to: plusArr(from, dimension),
378+
to: plusArr(from, plusArr(dimension, cubeGrow)),
379379
autouv: 0,
380380
color: 1,
381-
inflate: (cubeGrow[0] + cubeGrow[1] + cubeGrow[2]) / 3,
381+
inflate: 0,
382382
origin: [0, 0, 0],
383383
uv_offset: _cloneArr(cube.textureOffset),
384384
faces: {
@@ -473,4 +473,4 @@ const plusArr = (arr1: NumArray, arr2: NumArray): NumArray => {
473473

474474
const _cloneArr = <T>(lo: LO<T>): T => {
475475
return Array.from(lo.value as any) as any
476-
}
476+
}

0 commit comments

Comments
 (0)