Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion py3dbp/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ def __init__(self, name, width, height, depth, weight):
self.rotation_type = 0
self.position = START_POSITION
self.number_of_decimals = DEFAULT_NUMBER_OF_DECIMALS
self.allowed_rotations = RotationType.ALL

def format_numbers(self, number_of_decimals):
self.width = set_to_decimal(self.width, number_of_decimals)
Expand Down Expand Up @@ -95,7 +96,7 @@ def put_item(self, item, pivot):
valid_item_position = item.position
item.position = pivot

for i in range(0, len(RotationType.ALL)):
for i in item.allowed_rotations:
item.rotation_type = i
dimension = item.get_dimension()
if (
Expand Down