mirror of
https://github.com/panda3d/panda3d.git
synced 2026-04-22 14:41:36 -05:00
Work around a weird crash
This commit is contained in:
@@ -200,7 +200,10 @@ class DirectDialog(DirectFrame):
|
||||
extraArgs = [value])
|
||||
# Position buttons and text
|
||||
pad = self['pad']
|
||||
image = self.component('image0')
|
||||
if self.hascomponent('image0'):
|
||||
image = self.component('image0')
|
||||
else:
|
||||
image = None
|
||||
# Get size of text/geom without image (for state 0)
|
||||
if image:
|
||||
image.reparentTo(hidden)
|
||||
|
||||
Reference in New Issue
Block a user