mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 16:20:11 -04:00
tkpanels: fix a few exceptions in AnimPanel
This commit is contained in:
parent
f32dc3cf2b
commit
a3b4486ef3
@ -276,7 +276,7 @@ class AnimPanel(AppShell):
|
|||||||
title = 'Load Animation',
|
title = 'Load Animation',
|
||||||
parent = self.component('hull')
|
parent = self.component('hull')
|
||||||
)
|
)
|
||||||
if (animFilename == ''):
|
if not animFilename:
|
||||||
# no file selected, canceled
|
# no file selected, canceled
|
||||||
return
|
return
|
||||||
|
|
||||||
@ -372,8 +372,9 @@ class AnimPanel(AppShell):
|
|||||||
def destroy(self):
|
def destroy(self):
|
||||||
# First clean up
|
# First clean up
|
||||||
taskMgr.remove(self.id + '_UpdateTask')
|
taskMgr.remove(self.id + '_UpdateTask')
|
||||||
self.destroyCallBack()
|
if self.destroyCallBack is not None:
|
||||||
self.destroyCallBack = None
|
self.destroyCallBack()
|
||||||
|
self.destroyCallBack = None
|
||||||
AppShell.destroy(self)
|
AppShell.destroy(self)
|
||||||
|
|
||||||
class ActorControl(Pmw.MegaWidget):
|
class ActorControl(Pmw.MegaWidget):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user