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