don't need to check E3hacks anymore

This commit is contained in:
Darren Ranalli 2006-05-17 21:06:50 +00:00
parent 3265a7d1b0
commit df9ae1f69f
1 changed files with 2 additions and 2 deletions

View File

@ -715,7 +715,7 @@ class DirectGuiWidget(DirectGuiBase, NodePath):
if self['guiId']:
self.guiItem.setId(self['guiId'])
self.guiId = self.guiItem.getId()
if __dev__ or (hasattr(base, 'cr') and base.cr.wantE3hacks):
if __dev__:
# track gui items by guiId for tracking down leaks
if hasattr(base, 'guiItems'):
if self.guiId in base.guiItems:
@ -1008,7 +1008,7 @@ class DirectGuiWidget(DirectGuiBase, NodePath):
self.updateFrameStyle()
def destroy(self):
if __dev__ or (hasattr(base, 'cr') and base.cr.wantE3hacks):
if __dev__:
if hasattr(base, 'guiItems'):
if self.guiId in base.guiItems:
del base.guiItems[self.guiId]