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