Skip to content
Snippets Groups Projects
Commit d76a8d0a authored by Fabian Heinrich's avatar Fabian Heinrich
Browse files

Displaying multiple items in cookingequipment is not dependent on gridsize

parent 62a0e35a
No related branches found
No related tags found
No related merge requests found
Pipeline #48866 passed
......@@ -537,7 +537,7 @@ class Visualizer:
plate: item is on a plate (soup are is different on a plate and pot)
"""
if not isinstance(item, list): # can we remove this check?w
if not isinstance(item, list): # can we remove this check?
if item["type"] in self.config or (
item["type"].startswith("Burnt")
and item["type"].replace("Burnt", "") in self.config
......@@ -598,7 +598,7 @@ class Visualizer:
)
elif "content_list" in item and item["content_list"]:
triangle_offsets = create_polygon(
len(item["content_list"]), np.array([0, 10])
len(item["content_list"]), np.array([0, grid_size * 0.15])
)
scale = 1 if len(item["content_list"]) == 1 else 0.6
for idx, o in enumerate(item["content_list"]):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment