mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
Fix debug draw overlay visibility - simple canvas display toggle
- Fixed debug draw overlay not disappearing when checkbox unchecked - Added canvas.style.display control in onToggleDebugMode - Kept existing canvas-based PlanckDebugDraw system - Both canvas overlay and PIXI debug layer are now properly toggled - Debug physics bodies now properly show/hide with checkbox
This commit is contained in:
parent
38eb5ad182
commit
e784b27848
2 changed files with 10 additions and 13 deletions
|
|
@ -29,6 +29,11 @@ function (Parent, Settings, domController, Box2D, nc, PlanckDebugDraw, debugLaye
|
|||
this.setupDebugDraw();
|
||||
}
|
||||
|
||||
// Show/hide the debug canvas overlay
|
||||
if (this.debugCanvas) {
|
||||
this.debugCanvas.style.display = this.debugMode ? 'block' : 'none';
|
||||
}
|
||||
|
||||
debugLayer.container.visible = this.debugMode;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue