BoundingBox.volume correctly uses reduce instead of map
This commit is contained in:
parent
1e3ef64913
commit
f0378e11f3
2
box.py
2
box.py
@ -57,7 +57,7 @@ class BoundingBox:
|
||||
|
||||
maximum = property(getMaximum, None, None, "The endpoint of the box; origin plus size.")
|
||||
|
||||
def getVolume(self): return map(int.__mul__, self.size)
|
||||
def getVolume(self): return reduce(int.__mul__, self.size)
|
||||
volume = property(getVolume, None, None, "The volume of the box in blocks")
|
||||
|
||||
def __contains__(self, pos):
|
||||
|
Reference in New Issue
Block a user