Skip to content

Commit

Permalink
Bugfix preview backwards compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
ewoudwijma committed May 3, 2024
1 parent d63206a commit 28656db
Show file tree
Hide file tree
Showing 2 changed files with 1,472 additions and 1,468 deletions.
3 changes: 3 additions & 0 deletions data/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,9 @@ function preview3D(canvasNode, buffer) {
led.push(0);
let geometry;
// ppf("size and shape", jsonValues.pview.ledSize, jsonValues.pview.shape, jsonValues.pview.opacity);
if (!jsonValues.pview.ledSize) jsonValues.pview.ledSize = 7;
if (!jsonValues.pview.opacity) jsonValues.pview.opacity = 100;

if (jsonValues.pview.shape == 1)
geometry = new THREE.TetrahedronGeometry(jsonValues.pview.ledSize / 30); //was 1/factor
else // default
Expand Down
Loading

0 comments on commit 28656db

Please sign in to comment.