Minor modification.
This commit is contained in:
parent
71e51ecf58
commit
3195dfd80a
@ -322,12 +322,12 @@ export class ViewerMainModel
|
|||||||
if (!iSectObject.object.visible) {
|
if (!iSectObject.object.visible) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (intersectionMode === IntersectionMode.MeshOnly && iSectObject.object.isLineSegments) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
if (iSectObject.object.isMesh) {
|
if (iSectObject.object.isMesh) {
|
||||||
return iSectObject;
|
return iSectObject;
|
||||||
} else if (iSectObject.object.isLineSegments) {
|
} else if (iSectObject.object.isLineSegments) {
|
||||||
|
if (intersectionMode === IntersectionMode.MeshOnly) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
let distance = GetLineSegmentsProjectedDistance (camera, width, height, iSectObject.object, mouseCoords);
|
let distance = GetLineSegmentsProjectedDistance (camera, width, height, iSectObject.object, mouseCoords);
|
||||||
if (distance > LineThresholdInPixels) {
|
if (distance > LineThresholdInPixels) {
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user