Skip to content

Commit

Permalink
fix: debug only in dev mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Gugustinette committed Aug 23, 2024
1 parent 0438aa1 commit 909f54a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion apps/playground-2d/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ import MySquare from './classes/MySquare'
await scene.init()
await scene.initPhysics()
// Debug the scene
fDebug(scene)
if (import.meta.env.DEV)
fDebug(scene)

// Create the ground
const ground = new FSquare(scene, {
Expand Down
3 changes: 2 additions & 1 deletion apps/playground-3d/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ import MyCustomCube from './classes/MyCustomCube'
scene.init()
await scene.initPhysics()
// Debug the scene
fDebug(scene)
if (import.meta.env.DEV)
fDebug(scene)

// Create a ground
const ground = new FCube(scene, {
Expand Down

0 comments on commit 909f54a

Please sign in to comment.