Clear visualizer on item change

This commit is contained in:
Jesse Boyd 2017-03-05 15:34:26 +11:00
parent 4007155b8f
commit c10520c010
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F
2 changed files with 3 additions and 1 deletions

View File

@ -28,7 +28,7 @@ ext {
date = git.head().date.format("yy.MM.dd") date = git.head().date.format("yy.MM.dd")
revision = "-${git.head().abbreviatedId}" revision = "-${git.head().abbreviatedId}"
parents = git.head().parentIds; parents = git.head().parentIds;
index = -78; // Offset to mach CI index = -79; // Offset to mach CI
int major, minor, patch; int major, minor, patch;
major = minor = patch = 0; major = minor = patch = 0;
for (;parents != null && !parents.isEmpty();index++) { for (;parents != null && !parents.isEmpty();index++) {

View File

@ -362,6 +362,8 @@ public class BrushTool implements DoubleActionTraceTool, ScrollTool, MovableTool
} }
} }
return true; return true;
} else if (visualMode != VisualMode.NONE) {
clear(player);
} }
return false; return false;
} }