mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -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")
|
notify = DirectNotifyGlobal.directNotify.newCategory("Pool")
|
||||||
|
|
||||||
def __init__(self, free=[]):
|
def __init__(self, free=None):
|
||||||
self.__free = free
|
if free:
|
||||||
|
self.__free = free
|
||||||
|
else:
|
||||||
|
self.__free = []
|
||||||
self.__used = []
|
self.__used = []
|
||||||
|
|
||||||
def add(self, item):
|
def add(self, item):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user