added function to change render resolution by typing the number in (need to have the GUI as active window), fixed a bug where adding a slow effect crashed the program if you add it first after changing the image

This commit is contained in:
2022-08-01 09:02:55 +02:00
parent ae3644fa07
commit 65cd4bd3af
3 changed files with 58 additions and 15 deletions

View File

@@ -60,10 +60,14 @@ class Shader {
}
previousPos = pos;
if (previousActive != gui.bricks.get(pos).active) {
try{
if (previousActive != gui.bricks.get(pos).active) { //fails if brick has not yet been loaded but shader has
paramChanged = true;
}
previousActive = gui.bricks.get(pos).active;
} catch (Exception e){
println("Brick not yet loaded, couldn't catch active state");
}
if (!paramChanged) {
if (imageChanged) paramChanged = true;