Allow none as image in height brush, fixes #969
This commit is contained in:
@@ -928,7 +928,7 @@ public class BrushCommands {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private InputStream getHeightmapStream(String filename) throws FileNotFoundException {
|
private InputStream getHeightmapStream(String filename) throws FileNotFoundException {
|
||||||
if (filename == null) {
|
if (filename == null || "none".equalsIgnoreCase(filename)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
String filenamePng = filename.endsWith(".png") ? filename : filename + ".png";
|
String filenamePng = filename.endsWith(".png") ? filename : filename + ".png";
|
||||||
|
|||||||
Reference in New Issue
Block a user