mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
str(BrowserObject) should call toString()
This commit is contained in:
parent
4e0eae9eff
commit
64415a4352
@ -79,13 +79,7 @@ class BrowserObject:
|
||||
return method
|
||||
|
||||
def __str__(self):
|
||||
parentObj, attribName = self.__childObject
|
||||
if parentObj:
|
||||
# Format it from its parent.
|
||||
return "%s.%s" % (parentObj, attribName)
|
||||
else:
|
||||
# Format it directly.
|
||||
return "BrowserObject(%s)" % (self.__objectId)
|
||||
return self.toString()
|
||||
|
||||
def __nonzero__(self):
|
||||
return True
|
||||
|
Loading…
x
Reference in New Issue
Block a user