mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
warning on duplicate zoneNode
This commit is contained in:
parent
4e398a2747
commit
484fec162c
@ -25,7 +25,9 @@ def getZoneNum2Node(levelModel):
|
||||
continue
|
||||
num = int(name[:numDigits])
|
||||
# do we already have a ZoneNode for this zone num?
|
||||
assert not num in num2node
|
||||
if num in num2node:
|
||||
print 'warning: zone %s already assigned to %s. ignoring %s' % (
|
||||
num, num2node[num], potentialNode)
|
||||
num2node[num] = potentialNode
|
||||
|
||||
return num2node
|
||||
|
@ -19,7 +19,7 @@ def makeNewSpec(filename, modelPath, entTypeModule=EntityTypes):
|
||||
import SpecUtil
|
||||
import SellbotLegFactorySpec
|
||||
import FactoryEntityTypes
|
||||
SpecUtil.updateSpec(SellbotLegFactorySpec, FactoryEntityTypes, 'phase_9/models/cogHQ/newModel')
|
||||
SpecUtil.updateSpec(SellbotLegFactorySpec, FactoryEntityTypes, optional newModelPath)
|
||||
"""
|
||||
|
||||
def updateSpec(specModule, entTypeModule=EntityTypes, modelPath=None):
|
||||
|
Loading…
x
Reference in New Issue
Block a user