Skip to content

Commit

Permalink
fix: bugs in the new debug renderer (#1016)
Browse files Browse the repository at this point in the history
  • Loading branch information
alschmiedt authored Feb 23, 2022
1 parent 649e4a0 commit e4aaae7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/dev-tools/src/playground/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export function addGUIControls(genWorkspace, defaultOptions, config = {}) {
const defaultRendererName = defaultOptions.renderer ?
defaultOptions.renderer : 'geras';
guiState.renderer = guiState.renderer || defaultRendererName;
guiState.debugEnabled = guiState.debugEnabled || false;

// Merge default and saved state.
const saveOptions = /** @type {!Blockly.BlocklyOptions} */ ({
Expand Down Expand Up @@ -235,7 +236,7 @@ export function addGUIControls(genWorkspace, defaultOptions, config = {}) {
// Debug renderer.
const debugFolder = gui.addFolder('Debug');
// Adds the checkbox to toggle using the debug renderer.
const debugController = debugFolder.add(guiState, 'Enable Debug Renderer');
const debugController = debugFolder.add(guiState, 'debugEnabled');
// Folder with all the debug options. Hidden if the debugger is not enabled.
const debugOptionsFolder = debugFolder.addFolder('Debug Options');

Expand Down

0 comments on commit e4aaae7

Please sign in to comment.