From 23140d5e2324e5a242efa32fbd4c8199a861c0f7 Mon Sep 17 00:00:00 2001 From: Darren Ranalli Date: Fri, 21 Nov 2003 23:55:57 +0000 Subject: [PATCH] comment updates --- direct/src/level/SpecUtil.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/direct/src/level/SpecUtil.py b/direct/src/level/SpecUtil.py index 8121b9d4fa..ff592a71c5 100755 --- a/direct/src/level/SpecUtil.py +++ b/direct/src/level/SpecUtil.py @@ -115,19 +115,14 @@ def privUpdateSpec(spec, modelPath, entTypeModule): # by default, new zone can't see any other zones spec.doSetAttrib(entId, 'visibility', []) - # make sure none of the zones reference removed zones, and add - # the new zones to each zone's visibility list + # make sure none of the zones reference removed zones + # TODO: prune from other zoneList attribs for entId in zoneEntIds: visList = spec.getEntitySpec(entId)['visibility'] visDict = list2dict(visList) for zoneNum in removedZoneNums: if zoneNum in visDict: del visDict[zoneNum] - """ - for zoneNum in newZoneNums: - if zoneNum not in visDict: - visDict[zoneNum]=None - """ visList = visDict.keys() visList.sort() spec.doSetAttrib(entId, 'visibility', visList)