mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-17 20:23:47 -04:00
removed slow lineInfo() call
This commit is contained in:
parent
8fbd7392b1
commit
3f03bf96d0
@ -80,8 +80,9 @@ class Entity(DirectObject):
|
||||
def setAttribInit(self, attrib, value):
|
||||
if __debug__:
|
||||
if hasattr(self, attrib):
|
||||
Entity.notify.warning('%s already has member %s in %s' %
|
||||
(self, attrib, lineInfo()[2]))
|
||||
Entity.notify.warning(
|
||||
'%s already has member %s in setAttribInit' %
|
||||
(self, attrib))
|
||||
# TODO: we should probably put this crep in a dictionary
|
||||
# rather than dump it into the entity's namespace
|
||||
self.__dict__[attrib] = value
|
||||
|
Loading…
x
Reference in New Issue
Block a user