delAttribs->blockAttribs

This commit is contained in:
Darren Ranalli 2004-12-04 01:46:23 +00:00
parent 31b5179d42
commit fde6bcf1ad
2 changed files with 4 additions and 4 deletions

View File

@ -71,7 +71,7 @@ class EntityTypeDesc:
EntityTypeDesc.privCompileAttribDescs(base) EntityTypeDesc.privCompileAttribDescs(base)
# aggregate the attribute descriptors from our direct base classes # aggregate the attribute descriptors from our direct base classes
delAttribs = c.__dict__.get('delAttribs', []) blockAttribs = c.__dict__.get('blockAttribs', [])
baseADs = [] baseADs = []
bases = list(c.__bases__) bases = list(c.__bases__)
@ -81,7 +81,7 @@ class EntityTypeDesc:
for base in bases: for base in bases:
for desc in base._attribDescs: for desc in base._attribDescs:
# are we blocking this attribute? # are we blocking this attribute?
if desc.getName() in delAttribs: if desc.getName() in blockAttribs:
continue continue
# make sure we haven't already picked up this attribute # make sure we haven't already picked up this attribute

View File

@ -26,7 +26,7 @@ class LevelMgr(Entity):
class EditMgr(Entity): class EditMgr(Entity):
type = 'editMgr' type = 'editMgr'
permanent = 1 permanent = 1
delAttribs = ( blockAttribs = (
'comment', 'comment',
) )
attribs = ( attribs = (
@ -50,7 +50,7 @@ class Nodepath(Entity):
class Zone(Nodepath): class Zone(Nodepath):
type = 'zone' type = 'zone'
permanent = 1 permanent = 1
delAttribs = ( blockAttribs = (
'pos', 'pos',
'hpr', 'hpr',
) )