mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 17:35:34 -04:00
minor fix
This commit is contained in:
parent
1c6893bfde
commit
a764c4e37c
@ -891,7 +891,9 @@ class TexMemWatcher(DirectObject):
|
||||
|
||||
def findLargestHole(self):
|
||||
holes = self.findAvailableHoles(0)
|
||||
return max(holes)[1]
|
||||
if holes:
|
||||
return max(holes)[1]
|
||||
return None
|
||||
|
||||
def findAvailableHoles(self, area):
|
||||
""" Finds a list of available holes, of at least the indicated
|
||||
|
Loading…
x
Reference in New Issue
Block a user