mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-05 03:15:07 -04:00
comment updates
This commit is contained in:
parent
fa937c8c4a
commit
23140d5e23
@ -115,19 +115,14 @@ def privUpdateSpec(spec, modelPath, entTypeModule):
|
|||||||
# by default, new zone can't see any other zones
|
# by default, new zone can't see any other zones
|
||||||
spec.doSetAttrib(entId, 'visibility', [])
|
spec.doSetAttrib(entId, 'visibility', [])
|
||||||
|
|
||||||
# make sure none of the zones reference removed zones, and add
|
# make sure none of the zones reference removed zones
|
||||||
# the new zones to each zone's visibility list
|
# TODO: prune from other zoneList attribs
|
||||||
for entId in zoneEntIds:
|
for entId in zoneEntIds:
|
||||||
visList = spec.getEntitySpec(entId)['visibility']
|
visList = spec.getEntitySpec(entId)['visibility']
|
||||||
visDict = list2dict(visList)
|
visDict = list2dict(visList)
|
||||||
for zoneNum in removedZoneNums:
|
for zoneNum in removedZoneNums:
|
||||||
if zoneNum in visDict:
|
if zoneNum in visDict:
|
||||||
del visDict[zoneNum]
|
del visDict[zoneNum]
|
||||||
"""
|
|
||||||
for zoneNum in newZoneNums:
|
|
||||||
if zoneNum not in visDict:
|
|
||||||
visDict[zoneNum]=None
|
|
||||||
"""
|
|
||||||
visList = visDict.keys()
|
visList = visDict.keys()
|
||||||
visList.sort()
|
visList.sort()
|
||||||
spec.doSetAttrib(entId, 'visibility', visList)
|
spec.doSetAttrib(entId, 'visibility', visList)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user