Commit e7e176f7 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

no shootray = put z at scene's bbox z

parent 25dc5ff9
...@@ -787,7 +787,12 @@ function x3d_events(){ ...@@ -787,7 +787,12 @@ function x3d_events(){
// sliding marker // sliding marker
var mouse = x3dom_getXYPosOr(mouse_position[0],mouse_position[1],false); var mouse = x3dom_getXYPosOr(mouse_position[0],mouse_position[1],false);
var dist = parseFloat(mouse.d_xz) || 1116;
var dist_default = 1116;
if ($(".GroupTop").attr("bboxSize")!=undefined){
dist_default = parseFloat($(".GroupTop").attr("bboxSize").trim().split(" ")[2]);
}
var dist = parseFloat(mouse.d_xz) || dist_default;
Map.marker.placeSlidingMarker(mouse.a,dist); Map.marker.placeSlidingMarker(mouse.a,dist);
}else{ }else{
......
...@@ -1184,7 +1184,8 @@ X3DOMObject.displayInfo = function(e){ ...@@ -1184,7 +1184,8 @@ X3DOMObject.displayInfo = function(e){
X3DOMObject.displayMarkInfo(mouse.index); X3DOMObject.displayMarkInfo(mouse.index);
} }
var dist = 1115; //var dist = 1115;
var dist = parseFloat($(".GroupTop").attr("bboxSize").trim().split(" ")[2]);
$("#window-info").css({"font-size":"20px"}); $("#window-info").css({"font-size":"20px"});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment