Fixed #8764
This commit is contained in:
@@ -100,6 +100,7 @@ public class MapRenderer implements Disposable{
|
||||
|
||||
private void render(int wx, int wy){
|
||||
int x = wx / chunkSize, y = wy / chunkSize;
|
||||
if(x >= chunks.length || y >= chunks[0].length) return;
|
||||
IndexedRenderer mesh = chunks[x][y];
|
||||
Tile tile = editor.tiles().getn(wx, wy);
|
||||
|
||||
|
||||
@@ -184,12 +184,12 @@ public class MapView extends Element implements GestureListener{
|
||||
offsety -= ay * 15 * Time.delta / zoom;
|
||||
}
|
||||
|
||||
if(Core.input.keyTap(KeyCode.shiftLeft)){
|
||||
if(Core.input.keyTap(KeyCode.shiftLeft) || Core.input.keyTap(KeyCode.altLeft)){
|
||||
lastTool = tool;
|
||||
tool = EditorTool.pick;
|
||||
}
|
||||
|
||||
if(Core.input.keyRelease(KeyCode.shiftLeft) && lastTool != null){
|
||||
if((Core.input.keyRelease(KeyCode.shiftLeft) || Core.input.keyRelease(KeyCode.altLeft)) && lastTool != null){
|
||||
tool = lastTool;
|
||||
lastTool = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user