[editor only] Fix NPE when middle click vertex point

This commit is contained in:
fgnm
2023-09-24 13:48:56 +02:00
parent 48ef757f23
commit 5fd9391472
@@ -317,7 +317,7 @@ public class PolygonFollower extends SubFollower {
@Override
public boolean touchDown(InputEvent event, float x, float y, int pointer, int button) {
if (super.touchDown(event, x, y, pointer, button)) {
if(button != Input.Buttons.LEFT) return true;
if(button == Input.Buttons.RIGHT) return true;
PolyVertex vertex = (PolyVertex) event.getListenerActor();
draggingAnchorId = vertex.getIndex();