fix home button

This commit is contained in:
Seth Alves 2017-03-27 18:21:00 -07:00
parent c013813161
commit cdac011472

View file

@ -726,9 +726,7 @@ function calculateStylusTargetFromOverlay(stylusTip, overlayID) {
var invRot = Quat.inverse(overlayRotation);
var localPos = Vec3.multiplyQbyV(invRot, Vec3.subtract(position, overlayPosition));
var dpi = Overlays.getProperty(overlayID, "dpi");
if (dpi === undefined) {
return;
}
var dimensions;
if (dpi) {
// Calculate physical dimensions for web3d overlay from resolution and dpi; "dimensions" property is used as a scale.