mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
print object type when DoHierarchy gets an error
This commit is contained in:
parent
ed11448c65
commit
6a22f406ca
@ -220,7 +220,7 @@ class DistributedObject(DistributedObjectBase):
|
|||||||
self.__callbacks = {}
|
self.__callbacks = {}
|
||||||
self.cr.closeAutoInterests(self)
|
self.cr.closeAutoInterests(self)
|
||||||
self.setLocation(0,0)
|
self.setLocation(0,0)
|
||||||
self.cr.deleteObjectLocation(self.doId, self.parentId, self.zoneId)
|
self.cr.deleteObjectLocation(self, self.parentId, self.zoneId)
|
||||||
# TODO: disable my children
|
# TODO: disable my children
|
||||||
|
|
||||||
def isDisabled(self):
|
def isDisabled(self):
|
||||||
@ -423,7 +423,7 @@ class DistributedObject(DistributedObjectBase):
|
|||||||
self.cr.sendSetLocation(self.doId, parentId, zoneId)
|
self.cr.sendSetLocation(self.doId, parentId, zoneId)
|
||||||
|
|
||||||
def setLocation(self, parentId, zoneId):
|
def setLocation(self, parentId, zoneId):
|
||||||
self.cr.storeObjectLocation(self.doId, parentId, zoneId, self)
|
self.cr.storeObjectLocation(self, parentId, zoneId)
|
||||||
|
|
||||||
def getLocation(self):
|
def getLocation(self):
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user