Commit 05ed6e30 authored by Chunchi Che's avatar Chunchi Che

udpate singleSlot.tsx

parent 190bf880
Pipeline #19764 passed with stages
in 4 minutes and 12 seconds
......@@ -19,6 +19,11 @@ const SingleSlot = (props: {
}) => {
const boxRef = useRef(null);
const dispatch = store.dispatch;
const edgeRender =
props.state.find(
(item) => item.placeInteractivities || item.idleInteractivities.length > 0
) !== undefined;
const edgesWidth = 2.0;
useClick(
(_event) => {
......@@ -58,6 +63,8 @@ const SingleSlot = (props: {
}
position={props.position}
rotation={props.rotation}
enableEdgesRendering
edgesWidth={edgeRender ? edgesWidth : 0}
>
<standardMaterial
name="single-slot-mat"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment