Skip to content
This repository has been archived by the owner on Sep 28, 2024. It is now read-only.

Commit

Permalink
HexTree LevelObject: use width/height settings
Browse files Browse the repository at this point in the history
  • Loading branch information
city41 committed Jun 15, 2021
1 parent 2a45837 commit fc4cfd5
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,11 @@ function LevelObject({ object, scale, objectSet }: LevelObjectProps) {
getPayloadType(entityDefViaPayload.payloadToObjectId!, object.id)) ||
null;

return entityDef.render(false, { payload }, () => {});
return entityDef.render(
false,
{ payload, width: widthInTiles, height: heightInTiles },
() => {}
);
} else {
return (
<ObjectIcon
Expand Down

1 comment on commit fc4cfd5

@vercel
Copy link

@vercel vercel bot commented on fc4cfd5 Jun 15, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.