From 4b4e9e0a0c15b6bb7dc63e9ad29536ca3cd8e02f Mon Sep 17 00:00:00 2001 From: Darren Ranalli Date: Wed, 15 Oct 2003 21:17:51 +0000 Subject: [PATCH] comments, notify.debug->info --- direct/src/level/EditMgrAI.py | 3 +++ direct/src/level/LevelSpec.py | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/direct/src/level/EditMgrAI.py b/direct/src/level/EditMgrAI.py index be7e89c41e..ae1f545f9c 100755 --- a/direct/src/level/EditMgrAI.py +++ b/direct/src/level/EditMgrAI.py @@ -16,6 +16,9 @@ class EditMgrAI(EditMgrBase.EditMgrBase): # dumb linear search for now # make this smarter (cache last-allocated id) + # Note that this uses the ID range associated with the + # AI's username, not the username of the user who requested + # the new entity. for id in xrange(*EditorGlobals.getEntIdAllocRange()): if not id in entIdDict: break diff --git a/direct/src/level/LevelSpec.py b/direct/src/level/LevelSpec.py index 963937cc88..47d13bfa88 100755 --- a/direct/src/level/LevelSpec.py +++ b/direct/src/level/LevelSpec.py @@ -94,8 +94,8 @@ class LevelSpec: def setAttribChange(self, entId, attrib, value, username): """ we're being asked to change an attribute """ - LevelSpec.notify.debug("setAttribChange(%s): %s, %s = '%s'" % - (username, entId, attrib, repr(value))) + LevelSpec.notify.info("setAttribChange(%s): %s, %s = '%s'" % + (username, entId, attrib, repr(value))) assert entId in self.entId2specDict specDict = self.entId2specDict[entId] assert specDict[entId].has_key(attrib) @@ -105,7 +105,7 @@ class LevelSpec: self.level.handleAttribChange(entId, attrib, value, username) def insertEntity(self, entId, entType, parentEntId): - LevelSpec.notify.debug('inserting entity %s' % entId) + LevelSpec.notify.info('inserting entity %s' % entId) assert entId not in self.entId2specDict assert self.entTypeReg is not None globalEnts = self.privGetGlobalEntityDict() @@ -125,7 +125,7 @@ class LevelSpec: self.level.handleEntityInsert(entId) def removeEntity(self, entId): - LevelSpec.notify.debug('removing entity %s' % entId) + LevelSpec.notify.info('removing entity %s' % entId) assert entId in self.entId2specDict # notify the level self.level.handleEntityRemove(entId)