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

View File

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