mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-19 05:06:25 -04:00
check for frameStyle before deleting
This commit is contained in:
parent
8ef8e73472
commit
a1cb222bed
@ -996,6 +996,7 @@ class DirectGuiWidget(DirectGuiBase, NodePath):
|
|||||||
self.updateFrameStyle()
|
self.updateFrameStyle()
|
||||||
|
|
||||||
def destroy(self):
|
def destroy(self):
|
||||||
|
if hasattr(self, "frameStyle"):
|
||||||
# Destroy children
|
# Destroy children
|
||||||
for child in self.getChildrenAsList():
|
for child in self.getChildrenAsList():
|
||||||
childGui = self.guiDict.get(child.getName())
|
childGui = self.guiDict.get(child.getName())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user