mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 19:08:55 -04:00
[darren] fixed grey-screen on first door-open
This commit is contained in:
parent
37f484dd48
commit
b7c6b8105e
@ -33,7 +33,7 @@ class DistributedLevel(DistributedObject.DistributedObject,
|
|||||||
def __init__(self, cr):
|
def __init__(self, cr):
|
||||||
DistributedObject.DistributedObject.__init__(self, cr)
|
DistributedObject.DistributedObject.__init__(self, cr)
|
||||||
Level.Level.__init__(self)
|
Level.Level.__init__(self)
|
||||||
self.lastToonZone = 0
|
self.lastToonZone = None
|
||||||
self.lastCamZone = 0
|
self.lastCamZone = 0
|
||||||
self.titleColor = (1,1,1,1)
|
self.titleColor = (1,1,1,1)
|
||||||
self.titleText = OnscreenText.OnscreenText(
|
self.titleText = OnscreenText.OnscreenText(
|
||||||
@ -564,7 +564,10 @@ class DistributedLevel(DistributedObject.DistributedObject,
|
|||||||
# make sure that the visibility list includes the zone that the toon
|
# make sure that the visibility list includes the zone that the toon
|
||||||
# is standing in
|
# is standing in
|
||||||
if self.lastToonZone not in visibleZoneNums:
|
if self.lastToonZone not in visibleZoneNums:
|
||||||
self.notify.warning('adding zoneNum %s to visibility list '
|
# make sure there IS a last zone
|
||||||
|
if self.lastToonZone is not None:
|
||||||
|
self.notify.warning(
|
||||||
|
'adding zoneNum %s to visibility list '
|
||||||
'because toon is standing in that zone!' %
|
'because toon is standing in that zone!' %
|
||||||
self.lastToonZone)
|
self.lastToonZone)
|
||||||
visibleZoneNums.update(list2dict([self.lastToonZone]))
|
visibleZoneNums.update(list2dict([self.lastToonZone]))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user