mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
delAttribs->blockAttribs
This commit is contained in:
parent
31b5179d42
commit
fde6bcf1ad
@ -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
|
||||
|
@ -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',
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user