readded failsave mechanism, less crashes

This commit is contained in:
2022-07-27 13:22:25 +02:00
parent 7352ce357d
commit 555d729879
2 changed files with 6 additions and 6 deletions

View File

@@ -1,2 +1,2 @@
//globals
uptime = 116820983
uptime = 116880661

View File

@@ -229,17 +229,17 @@ public class SecondApplet extends PApplet {
else
renderSizeChanged = false;
for (int i = 0; i < shaderList.size(); i++) {
//try {
try {
shaderList.get(i).getValuesFromGUI();
if (bricks.get(i).active) {
//shaderList.get(i).getValuesFromGUI();
shaderList.get(i).shade();
}
// }
//catch(Exception e) {
// println("Warning: Brick not yet loaded");
//}
}
catch(Exception e) {
println("Warning: Brick not yet loaded");
}
if (i > maxFx) break;
}
}