Skip to content

Commit

Permalink
Merge pull request #142 from twhlynch/develop
Browse files Browse the repository at this point in the history
fix toggle fog breaking on sign text
  • Loading branch information
twhlynch authored Oct 18, 2024
2 parents f1247d8 + 6324396 commit 60cc6f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/levels/viewer/scripts/level_viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1535,7 +1535,7 @@ function toggleFog()
scene.traverse(function(node) {
if(node instanceof THREE.Mesh)
{
if("material" in node && "fogEnabled" in node.material.uniforms)
if("material" in node && "uniforms" in node.material && "fogEnabled" in node.material.uniforms)
{
node.material.uniforms["fogEnabled"].value = fogValue
}
Expand Down

0 comments on commit 60cc6f1

Please sign in to comment.