Skip to content

Commit

Permalink
Merge pull request #673 from HSF/fix664
Browse files Browse the repository at this point in the history
Fix for Cannot set box hit color from JSON #664
  • Loading branch information
EdwardMoyse authored Jul 29, 2024
2 parents c9379f3 + 48db185 commit 87e9e14
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ export class PhoenixObjects {
geometry.computeBoundingSphere();
// material
const material = new MeshPhongMaterial({
color: hitsParams.color ?? EVENT_DATA_TYPE_COLORS.Hits,
color: parseInt(hitsParams[0].color) ?? EVENT_DATA_TYPE_COLORS.Hits,
});
// object
const box = new Mesh(geometry, material);
Expand Down

0 comments on commit 87e9e14

Please sign in to comment.