mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
fixed black-screen problem with new level specs
This commit is contained in:
parent
fcf6fd5be8
commit
f96290f66e
@ -435,6 +435,7 @@ class DistributedLevel(DistributedObject.DistributedObject,
|
||||
self.curZoneNum = None
|
||||
|
||||
self.visChangedThisFrame = 0
|
||||
self.sentFirstSetZone = 0
|
||||
|
||||
# listen for camera-ray/floor collision events
|
||||
def handleCameraRayFloorCollision(collEntry, self=self):
|
||||
@ -611,8 +612,12 @@ class DistributedLevel(DistributedObject.DistributedObject,
|
||||
for rz in removedZoneNums:
|
||||
self.hideZone(rz)
|
||||
|
||||
if vizZonesChanged:
|
||||
# it's important for us to send a setZone request on the first
|
||||
# frame, whether or not the visibility is different from what
|
||||
# we already have
|
||||
if vizZonesChanged or not self.sentFirstSetZone:
|
||||
self.setVisibility(visibleZoneNums.keys())
|
||||
self.sentFirstSetZone = 1
|
||||
|
||||
self.curZoneNum = zoneNum
|
||||
self.curVisibleZoneNums = visibleZoneNums
|
||||
|
Loading…
x
Reference in New Issue
Block a user