Skip to content

Commit a618f9c

Browse files
committed
not fully sure
1 parent aaab419 commit a618f9c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

index.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ let check = true;
2121
let test;
2222
test = !check;
2323
let firstClick = true;
24+
let codeChange = false;
2425

2526
function sceneBuild() { //function called when "Animate" is pressed
2627
if(firstClick == true){
@@ -65,6 +66,13 @@ function callSynth() {//function called when "get code" is pressed
6566
script.text = temp;
6667
script.setAttribute("id", "synth_script");
6768
document.body.appendChild(script);
69+
if(renderer != null && firstClick == false){
70+
renderer.clear();
71+
console.log("thsithsi");
72+
codeChange = true;
73+
}
74+
75+
6876

6977
});
7078
})

0 commit comments

Comments
 (0)