fixed a bug where moving a layer to trash would swap it and remove the swapped one instead if the maximum ui height was exceeded with layers

This commit is contained in:
2022-07-28 08:23:49 +02:00
parent 555d729879
commit 7b6c649eac
2 changed files with 19 additions and 1 deletions

View File

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

View File

@@ -119,3 +119,21 @@ void snapshot() {
println("Rendered " + frameName + ".png at " + dataPath("")+"/snapshots/ with a resolution of " + renderer.width + " x " + renderer.height);
saveStrings(dataPath("saves.sav"), saveData);
}
void mousePressed()
{
if (mouseButton == LEFT) {
if (sourceManager.dir != null) {
sourceManager.importURI(sourceManager.dir + "/" + sourceManager.selection[(int)random(sourceManager.selection.length)]);
}
}
if (mouseButton == RIGHT) {
snapshot();
}
}
void mouseWheel(MouseEvent event) {
if (event.getCount() < 0) renderSize += 8;
else renderSize -= 8;
renderSize = constrain(renderSize, 8, 15000);
}