From c3c47406ac43dafd51e6ad1d7b92a794bd69b7d6 Mon Sep 17 00:00:00 2001 From: Normand Briere <nbriere@noware.ca> Date: Fri, 27 Sep 2019 20:03:29 -0400 Subject: [PATCH] Fix/patch click flicking. --- CameraPane.java | 16 +++++++++++----- 1 files changed, 11 insertions(+), 5 deletions(-) diff --git a/CameraPane.java b/CameraPane.java index b558c23..d075633 100644 --- a/CameraPane.java +++ b/CameraPane.java @@ -250,7 +250,7 @@ public javax.media.opengl.GL GetGL0() { - return null; + return currentGL; } public int GenList() @@ -10761,7 +10761,9 @@ } /**/ - if (selection) + boolean control = ((modifiers & CTRL) != 0); + + if (selection && (!Globals.isLIVE() || control)) { selectbuffer.display(); return; @@ -14346,8 +14348,6 @@ public void mousePressed(MouseEvent e) { - RigidBody.justclicked = true; - System.out.println("justclicked: " + e); //System.out.println("mousePressed: " + e); clickStart(e.getX(), e.getY(), e.getModifiers(), e.getModifiersEx()); } @@ -14655,7 +14655,7 @@ boolean jump; boolean live; - boolean mute; + boolean mute = false; // void JumpToTarget() // { @@ -15367,6 +15367,12 @@ public void mouseReleased(MouseEvent e) { + if (isRenderer && !movingcamera) + { + RigidBody.justclicked = true; + System.out.println("justclicked: " + e); + } + Globals.MOUSEDRAGGED = false; movingcamera = false; -- Gitblit v1.6.2