#4391 Move axis meshes behind so they don't block line segments from being selected (#5807)

Move axis meshes behind so they will be picked after line segment by raycaster
This commit is contained in:
Andrew Varga
2025-03-18 03:00:21 +01:00
committed by GitHub
parent f9e09893e7
commit 0688ce7fe9

View File

@ -371,6 +371,11 @@ export class SceneEntities {
const yAxisMesh = new Mesh(yAxisGeometry, yAxisMaterial)
xAxisMesh.renderOrder = -2
yAxisMesh.renderOrder = -1
// This makes sure axis lines are picked after segment lines in case of overlapping
xAxisMesh.position.z = -0.1
yAxisMesh.position.z = -0.1
xAxisMesh.userData = {
type: X_AXIS,
baseColor: baseXColor,