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