mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-28 07:48:37 -04:00
direct: change some variables to not override language builtins/keywords
Closes #1120
This commit is contained in:
parent
7a838e7212
commit
12e86bd842
@ -124,8 +124,8 @@ class DistributedObject(DistributedObjectBase):
|
|||||||
if field is not None:
|
if field is not None:
|
||||||
p = DCPacker()
|
p = DCPacker()
|
||||||
p.setUnpackData(field.getDefaultValue())
|
p.setUnpackData(field.getDefaultValue())
|
||||||
len = p.rawUnpackUint16() // 4
|
length = p.rawUnpackUint16() // 4
|
||||||
for i in range(len):
|
for i in range(length):
|
||||||
zone = int(p.rawUnpackUint32())
|
zone = int(p.rawUnpackUint32())
|
||||||
autoInterests.add(zone)
|
autoInterests.add(zone)
|
||||||
autoInterests.update(autoInterests)
|
autoInterests.update(autoInterests)
|
||||||
@ -141,9 +141,9 @@ class DistributedObject(DistributedObjectBase):
|
|||||||
_getAutoInterests = None
|
_getAutoInterests = None
|
||||||
return list(autoInterests)
|
return list(autoInterests)
|
||||||
|
|
||||||
def setNeverDisable(self, bool):
|
def setNeverDisable(self, boolean):
|
||||||
assert bool == 1 or bool == 0
|
assert boolean == 1 or boolean == 0
|
||||||
self.neverDisable = bool
|
self.neverDisable = boolean
|
||||||
|
|
||||||
def getNeverDisable(self):
|
def getNeverDisable(self):
|
||||||
return self.neverDisable
|
return self.neverDisable
|
||||||
@ -177,9 +177,9 @@ class DistributedObject(DistributedObjectBase):
|
|||||||
# call this to throw out cached data from a previous instantiation
|
# call this to throw out cached data from a previous instantiation
|
||||||
self._cachedData[name].flush()
|
self._cachedData[name].flush()
|
||||||
|
|
||||||
def setCacheable(self, bool):
|
def setCacheable(self, boolean):
|
||||||
assert bool == 1 or bool == 0
|
assert boolean == 1 or boolean == 0
|
||||||
self.cacheable = bool
|
self.cacheable = boolean
|
||||||
|
|
||||||
def getCacheable(self):
|
def getCacheable(self):
|
||||||
return self.cacheable
|
return self.cacheable
|
||||||
|
Loading…
x
Reference in New Issue
Block a user