mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 08:48:53 +02:00
Merge pull request #5104 from AndrewMeadows/americium
fix bug where grab.js moves mouse to upper left corner after pressing CTRL
This commit is contained in:
commit
2e746324d7
2 changed files with 5 additions and 1 deletions
|
@ -140,6 +140,10 @@ function mouseIntersectionWithPlane(pointOnPlane, planeNormal, event) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function computeNewGrabPlane() {
|
function computeNewGrabPlane() {
|
||||||
|
if (!gIsGrabbing) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var maybeResetMousePosition = false;
|
var maybeResetMousePosition = false;
|
||||||
if (gGrabMode !== "rotate") {
|
if (gGrabMode !== "rotate") {
|
||||||
gMouseAtRotateStart = gMouseCursorLocation;
|
gMouseAtRotateStart = gMouseCursorLocation;
|
||||||
|
|
|
@ -245,7 +245,7 @@ public:
|
||||||
void update(const UpdateFunctorPointer& updateFunctor) { _payload->update(updateFunctor); }
|
void update(const UpdateFunctorPointer& updateFunctor) { _payload->update(updateFunctor); }
|
||||||
|
|
||||||
// Shape Type Interface
|
// Shape Type Interface
|
||||||
const model::MaterialKey& getMaterialKey() const { return _payload->getMaterialKey(); }
|
const model::MaterialKey getMaterialKey() const { return _payload->getMaterialKey(); }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
PayloadPointer _payload;
|
PayloadPointer _payload;
|
||||||
|
|
Loading…
Reference in a new issue