Skip to content

Commit

Permalink
Fix for #13
Browse files Browse the repository at this point in the history
  • Loading branch information
David-Orangemoon committed Aug 22, 2024
1 parent f04f0c7 commit 1b4e8ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Source/blockly/addons/dynamicMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
let returned = [];
const variables = workspace.getAllVariables();
variables.forEach(variableDef => {
if (variableDef.name.split(" ")[0] == "hat") {
if (variableDef.name.split(" ")[0] == "hat" || variableDef.name.split(" ")[0] == "varying") {
returned.push([
variableDef.name.split(" ")[1],
`${variableDef.name} ${variableDef.type}`
Expand Down
2 changes: 1 addition & 1 deletion Source/blocks/variables.js
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@

if (variable.name.split(" ")[0].split("[")[0] == "array") {
hasArrayScope = true;
} else if (variable.name.split(" ")[0] == "hat") {
} else if (variable.name.split(" ")[0] == "hat" || variable.name.split(" ")[0] == "varying") {
hasNormalScope = true;
}
});
Expand Down

0 comments on commit 1b4e8ae

Please sign in to comment.