Permalink
Browse files

Fixed: BoundingBox honors its 'type' attribute again.

  • Loading branch information...
1 parent e82c974 commit 387a70b7e067be569b23ccb9e1e757fd151cfd31 @codewarrior0 codewarrior0 committed Nov 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 box.py
View
2 box.py
@@ -22,7 +22,7 @@ def __init__(self, origin=(0, 0, 0), size=(0, 0, 0)):
self._origin = origin._origin
self._size = origin._size
else:
- self._origin, self._size = Vector(*origin), Vector(*size)
+ self._origin, self._size = Vector(*(self.type(a) for a in origin)), Vector(*(self.type(a) for a in size))
def __repr__(self):
return "BoundingBox({0}, {1})".format(self.origin, self.size)

0 comments on commit 387a70b

Please sign in to comment.