mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 13:43:49 +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() {
|
||||
if (!gIsGrabbing) {
|
||||
return;
|
||||
}
|
||||
|
||||
var maybeResetMousePosition = false;
|
||||
if (gGrabMode !== "rotate") {
|
||||
gMouseAtRotateStart = gMouseCursorLocation;
|
||||
|
|
|
@ -245,7 +245,7 @@ public:
|
|||
void update(const UpdateFunctorPointer& updateFunctor) { _payload->update(updateFunctor); }
|
||||
|
||||
// Shape Type Interface
|
||||
const model::MaterialKey& getMaterialKey() const { return _payload->getMaterialKey(); }
|
||||
const model::MaterialKey getMaterialKey() const { return _payload->getMaterialKey(); }
|
||||
|
||||
protected:
|
||||
PayloadPointer _payload;
|
||||
|
|
Loading…
Reference in a new issue