mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 11:45:36 +02:00
fixed bug in grab.js where drop line overlay was not showing in correct position on first grab
This commit is contained in:
parent
40d2e97d44
commit
2b9ec8b6bf
1 changed files with 7 additions and 1 deletions
|
@ -59,7 +59,13 @@ function mousePressEvent(event) {
|
|||
isGrabbing = true;
|
||||
savedGravity = props.gravity;
|
||||
Overlays.editOverlay(dropLine, {
|
||||
visible: true
|
||||
visible: true,
|
||||
start: props.position,
|
||||
end: Vec3.sum(props.position, {
|
||||
x: 0,
|
||||
y: -DROP_DISTANCE,
|
||||
z: 0
|
||||
})
|
||||
});
|
||||
Entities.editEntity(grabbedEntity, {
|
||||
gravity: {
|
||||
|
|
Loading…
Reference in a new issue