fix: safer outlines

This commit is contained in:
TrèsAbhi committed 2024-08-01 14:19:52 -05:00
1 parent 99cdf931a8
commit 0f45476a8b
1 file changed
+5 -3
@@ -205,9 +205,11 @@ export function StaticArmorSceneComponent({
},
})}
<lineSegments material={outlineMaterial}>
<edgesGeometry args={[(node as Mesh).geometry, 45]} />
</lineSegments>
{node instanceof Mesh && (
<lineSegments material={outlineMaterial}>
<edgesGeometry args={[node.geometry, 90 / 6]} />
</lineSegments>
)}
</>
);
}