mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-14 11:20:03 +02:00
Don't raise creation position if in independent or entity view mode
This commit is contained in:
parent
508dee4580
commit
9b679325ff
1 changed files with 1 additions and 1 deletions
|
@ -1415,8 +1415,8 @@ function getPositionToCreateEntity() {
|
|||
position = Vec3.sum(Camera.position, Vec3.multiply(Quat.getForward(Camera.orientation), CREATE_DISTANCE));
|
||||
} else {
|
||||
position = Vec3.sum(MyAvatar.position, Vec3.multiply(Quat.getForward(MyAvatar.orientation), CREATE_DISTANCE));
|
||||
position.y += 0.5;
|
||||
}
|
||||
position.y += 0.5;
|
||||
|
||||
if (position.x > HALF_TREE_SCALE || position.y > HALF_TREE_SCALE || position.z > HALF_TREE_SCALE) {
|
||||
return null;
|
||||
|
|
Loading…
Reference in a new issue