mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
BUGFIX: assigning unique default names to Dialogs works now
This commit is contained in:
parent
9b18566665
commit
2c5d146913
@ -81,7 +81,7 @@ class DirectDialog(DirectFrame):
|
|||||||
# Inherits from DirectFrame
|
# Inherits from DirectFrame
|
||||||
optiondefs = (
|
optiondefs = (
|
||||||
# Define type of DirectGuiWidget
|
# Define type of DirectGuiWidget
|
||||||
('dialogName', None, INITOPT),
|
('dialogName', 'DirectDialog_' + `DirectDialog.PanelIndex`, INITOPT),
|
||||||
# Default position is slightly forward in Y, so as not to
|
# Default position is slightly forward in Y, so as not to
|
||||||
# intersect the near plane, which is incorrectly set to 0
|
# intersect the near plane, which is incorrectly set to 0
|
||||||
# in DX for some reason.
|
# in DX for some reason.
|
||||||
@ -118,8 +118,9 @@ class DirectDialog(DirectFrame):
|
|||||||
# Initialize superclasses
|
# Initialize superclasses
|
||||||
DirectFrame.__init__(self, parent)
|
DirectFrame.__init__(self, parent)
|
||||||
|
|
||||||
if not self['dialogName']:
|
#if not self['dialogName']:
|
||||||
self['dialogName'] = 'DirectDialog_' + `DirectDialog.PanelIndex`
|
# self['dialogName'] = 'DirectDialog_' + `DirectDialog.PanelIndex`
|
||||||
|
|
||||||
# Clean up any previously existing panel with the same unique
|
# Clean up any previously existing panel with the same unique
|
||||||
# name. We don't allow any two panels with the same name to
|
# name. We don't allow any two panels with the same name to
|
||||||
# coexist.
|
# coexist.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user