Skip to content

Commit

Permalink
fixed robots label position. (#1038)
Browse files Browse the repository at this point in the history
Signed-off-by: yutaroha <yutaroha@fsi.co.jp>
  • Loading branch information
yutaroha authored Nov 28, 2024
1 parent 4c56455 commit 6e62967
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,11 @@ export const RobotThreeMaker = ({
</mesh>
)}
{robotLabel && fontPath && fontPath.length > 0 ? (
<Text color="black" font={fontPath} fontSize={0.5} position={[0, 0, 1]}>
<Text color="black" font={fontPath} fontSize={0.5} position={position}>
{robot.name}
</Text>
) : robotLabel ? (
<TextThreeRendering position={[0, 0, 1]} text={robot.name} />
<TextThreeRendering position={[position.x, position.y, 1]} text={robot.name} />
) : null}
{imageUrl ? (
<RobotImageMaker
Expand Down

0 comments on commit 6e62967

Please sign in to comment.