Don't raise creation position if in independent or entity view mode

This commit is contained in:
David Rowe 2017-05-29 13:35:54 +12:00
parent 508dee4580
commit 9b679325ff

View file

@ -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;