mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
only detect DirectObject leaks in __dev__
This commit is contained in:
parent
0e885a8481
commit
3cfc2b6427
@ -83,6 +83,9 @@ class DirectObject:
|
|||||||
del self._taskList[task.id]
|
del self._taskList[task.id]
|
||||||
|
|
||||||
def detectLeaks(self):
|
def detectLeaks(self):
|
||||||
|
if not __dev__:
|
||||||
|
return
|
||||||
|
|
||||||
# call this after the DirectObject instance has been destroyed
|
# call this after the DirectObject instance has been destroyed
|
||||||
# if it's leaking, will notify user
|
# if it's leaking, will notify user
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user