Skip to content

Commit

Permalink
Prerelease 4.4.5
Browse files Browse the repository at this point in the history
  • Loading branch information
nimadez committed Sep 15, 2024
1 parent 6288ee8 commit 5e3c0f9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "voxel-builder",
"version": "4.4.4",
"version": "4.4.5",
"description": "Voxel-based 3D modeling application",
"main": "electron.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@
<li><button onclick="window.open('https://nimadez.github.io/voxel-builder/extras/vi2xel', '_blank').focus()">VI²XEL</button></li>
<li class="spacer"></li>
<li class="about">
4.4.4 Beta 2024
4.4.5 Beta 2024
<br>&#8627; <a href="https://github.com/nimadez/voxel-builder/">GitHub</a>
<br>&#8627; <a href="https://github.com/nimadez/voxel-builder/releases">Changelog</a>
<br>Developer
Expand Down Expand Up @@ -492,7 +492,7 @@
<li class="row_input"><label>Samples</label> <input type="number" id="input-pt-maxsamples" class="ignorekeys" value="512" min="8" max="8192" step="8"></li>
<li class="row_input"><label>Bounces</label> <input type="number" id="input-pt-bounces" class="ignorekeys" value="1" min="1" max="20" step="1"></li>
<li class="row_input"><label>Max DPR</label> <input type="number" id="input-pt-dpr" class="ignorekeys" value="1" min="1" max="1" step="1"></li>
<li class="row_input"><label>Tiles</label> <input type="number" id="input-pt-tiles" class="ignorekeys" value="1" min="1" step="1"></li>
<li class="row_input"><label>Tiles</label> <input type="number" id="input-pt-tiles" class="ignorekeys" value="3" min="1" step="1"></li>
<li class="spacer"></li>
<li><button id="btn-pt-pause">Pause</button></li>
<li class="row">
Expand Down
14 changes: 8 additions & 6 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1683,13 +1683,14 @@ class Builder {

for (let i = 0; i < positions.length; i++) {
const idx = this.getIndexAtPosition(positions[i]);
if (idx > -1)
if (idx > -1) {
tmparr.push(builder.voxels[idx]);

if (isSymmetry) {
const idx = this.getIndexAtPosition(symmetry.invertPos(positions[i]));
if (idx > -1)
tmparr.push(builder.voxels[idx]);
if (isSymmetry) {
const idx = this.getIndexAtPosition(symmetry.invertPos(positions[i]));
if (idx > -1)
tmparr.push(builder.voxels[idx]);
}
}
}
return tmparr;
Expand Down Expand Up @@ -3977,7 +3978,7 @@ class Project {

serializeScene(voxels, meshes) {
const json = {
version: "Voxel Builder 4.4.4",
version: "Voxel Builder 4.4.5",
project: {
name: "name",
voxels: builder.voxels.length,
Expand Down Expand Up @@ -4539,6 +4540,7 @@ class UserInterface {
}
});
}
this.lastIndex = 1000;
}

switchPanel(panel) {
Expand Down
2 changes: 1 addition & 1 deletion src/modules/sandbox/sandbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import {


const DPR_FAST = 0.6;
const TILE = 1;
const TILE = 3;
const CAM_FAR = 1000;


Expand Down

0 comments on commit 5e3c0f9

Please sign in to comment.