mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
shared list bug fix
This commit is contained in:
parent
b84fde482b
commit
47a6d4716f
@ -21,8 +21,11 @@ class Pool:
|
||||
|
||||
notify = DirectNotifyGlobal.directNotify.newCategory("Pool")
|
||||
|
||||
def __init__(self, free=[]):
|
||||
self.__free = free
|
||||
def __init__(self, free=None):
|
||||
if free:
|
||||
self.__free = free
|
||||
else:
|
||||
self.__free = []
|
||||
self.__used = []
|
||||
|
||||
def add(self, item):
|
||||
|
Loading…
x
Reference in New Issue
Block a user