mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
Readability
This commit is contained in:
parent
0ecf5adfbb
commit
b58c2981d1
@ -57,11 +57,10 @@ class DistributedObjectUD(DistributedObjectBase):
|
|||||||
"""
|
"""
|
||||||
spaces = ' ' * (indent + 2)
|
spaces = ' ' * (indent + 2)
|
||||||
try:
|
try:
|
||||||
print "%s%s:"%(
|
print "%s%s:" % (' ' * indent, self.__class__.__name__)
|
||||||
' '*indent, self.__class__.__name__)
|
print ("%sfrom "
|
||||||
print "%sfrom DistributedObject doId:%s, parent:%s, zone:%s"%(
|
"DistributedObject doId:%s, parent:%s, zone:%s" %
|
||||||
spaces,
|
(spaces, self.doId, self.parentId, self.zoneId)),
|
||||||
self.doId, self.parentId, self.zoneId),
|
|
||||||
flags = []
|
flags = []
|
||||||
if self.__generated:
|
if self.__generated:
|
||||||
flags.append("generated")
|
flags.append("generated")
|
||||||
@ -230,6 +229,7 @@ class DistributedObjectUD(DistributedObjectBase):
|
|||||||
# arguments are newZoneId, oldZoneId
|
# arguments are newZoneId, oldZoneId
|
||||||
# includes the quiet zone.
|
# includes the quiet zone.
|
||||||
return 'DOChangeZone-%s' % self.doId
|
return 'DOChangeZone-%s' % self.doId
|
||||||
|
|
||||||
def getLogicalZoneChangeEvent(self):
|
def getLogicalZoneChangeEvent(self):
|
||||||
# this event is generated whenever this object changes to a
|
# this event is generated whenever this object changes to a
|
||||||
# non-quiet-zone zone.
|
# non-quiet-zone zone.
|
||||||
@ -283,8 +283,8 @@ class DistributedObjectUD(DistributedObjectBase):
|
|||||||
# have we already allocated a doId?
|
# have we already allocated a doId?
|
||||||
if self.__preallocDoId:
|
if self.__preallocDoId:
|
||||||
self.__preallocDoId = 0
|
self.__preallocDoId = 0
|
||||||
return self.generateWithRequiredAndId(
|
return self.generateWithRequiredAndId(self.doId, zoneId,
|
||||||
self.doId, zoneId, optionalFields)
|
optionalFields)
|
||||||
|
|
||||||
# The repository is the one that really does the work
|
# The repository is the one that really does the work
|
||||||
parentId = self.air.districtId
|
parentId = self.air.districtId
|
||||||
|
Loading…
x
Reference in New Issue
Block a user