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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user