|
@@ -31,9 +31,9 @@ const getLineProps = () => ({
|
|
|
width: props.path.lineWidth,
|
|
|
color: props.path.lineColor,
|
|
|
altitudeAboveGround: props.path.lineAltitudeAboveGround,
|
|
|
- position: props.path.linePosition?.position || props.path.points[0].position,
|
|
|
+ position: props.path.linePosition?.position || props.path.points[0]?.position,
|
|
|
normal: props.path.linePosition?.normal || { x: 0, y: 0, z: 1 },
|
|
|
- modelId: props.path.linePosition?.modelId || props.path.points[0].modelId,
|
|
|
+ modelId: props.path.linePosition?.modelId || props.path.points[0]?.modelId,
|
|
|
});
|
|
|
|
|
|
const path = sdk.createPath({
|