Multiplying now also gives a message if it could not find a suitable spot for some objects

This commit is contained in:
Jaime van Kessel 2017-04-07 16:40:39 +02:00
parent f9fbd8c02e
commit e26ade0e6f
3 changed files with 19 additions and 6 deletions

View file

@ -84,11 +84,13 @@ class Arrange:
if x is not None: # We could find a place
new_node.setPosition(Vector(x, center_y, y))
found_spot = True
self.place(x, y, hull_shape_arr) # place the object in arranger
else:
Logger.log("d", "Could not find spot!")
Logger.log("d", "Could not find spot!"),
found_spot = False
new_node.setPosition(Vector(200, center_y, 100))
return new_node
return new_node, found_spot
## Fill priority, center is best. Lower value is better
# This is a strategy for the arranger.