mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
empty zone list for new zones
This commit is contained in:
parent
1fc1a5100f
commit
5ef47ae9f6
@ -101,13 +101,8 @@ def privUpdateSpec(spec, modelPath, entTypeModule):
|
|||||||
|
|
||||||
print 'adding entity %s for new zone %s' % (entId, zoneNum)
|
print 'adding entity %s for new zone %s' % (entId, zoneNum)
|
||||||
insertZoneEntity(entId, zoneNum)
|
insertZoneEntity(entId, zoneNum)
|
||||||
# by default, new zone can see every other zone
|
# by default, new zone can't see any other zones
|
||||||
visList = list(modelZoneNums)
|
spec.doSetAttrib(entId, 'visibility', [])
|
||||||
# cur zone and uberzone are implicit
|
|
||||||
visList.remove(zoneNum)
|
|
||||||
visList.remove(0)
|
|
||||||
visList.sort()
|
|
||||||
spec.doSetAttrib(entId, 'visibility', visList)
|
|
||||||
|
|
||||||
# make sure none of the zones reference removed zones, and add
|
# make sure none of the zones reference removed zones, and add
|
||||||
# the new zones to each zone's visibility list
|
# the new zones to each zone's visibility list
|
||||||
|
Loading…
x
Reference in New Issue
Block a user