mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-18 12:43:44 -04:00
oops, fix int8array again
This commit is contained in:
parent
25fed58bca
commit
a885fa007a
@ -25,7 +25,7 @@
|
|||||||
elif subatomicType == STBlob:
|
elif subatomicType == STBlob:
|
||||||
self.addString(arg)
|
self.addString(arg)
|
||||||
elif subatomicType == STInt8array:
|
elif subatomicType == STInt8array:
|
||||||
self.addUint8(len(arg))
|
self.addUint16(len(arg))
|
||||||
for i in arg:
|
for i in arg:
|
||||||
self.addInt8(int(i*divisor))
|
self.addInt8(int(i*divisor))
|
||||||
elif subatomicType == STInt16array:
|
elif subatomicType == STInt16array:
|
||||||
@ -37,7 +37,7 @@
|
|||||||
for i in arg:
|
for i in arg:
|
||||||
self.addInt32(int(i*divisor))
|
self.addInt32(int(i*divisor))
|
||||||
elif subatomicType == STUint8array:
|
elif subatomicType == STUint8array:
|
||||||
self.addUint8(len(arg))
|
self.addUint16(len(arg))
|
||||||
for i in arg:
|
for i in arg:
|
||||||
self.addUint8(int(i*divisor))
|
self.addUint8(int(i*divisor))
|
||||||
elif subatomicType == STUint16array:
|
elif subatomicType == STUint16array:
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
elif subatomicType == STBlob:
|
elif subatomicType == STBlob:
|
||||||
retVal = self.getString()
|
retVal = self.getString()
|
||||||
elif subatomicType == STInt8array:
|
elif subatomicType == STInt8array:
|
||||||
len = self.getUint8()
|
len = self.getUint16()
|
||||||
retVal = []
|
retVal = []
|
||||||
for i in range(len):
|
for i in range(len):
|
||||||
retVal.append(self.getInt8())
|
retVal.append(self.getInt8())
|
||||||
@ -42,7 +42,7 @@
|
|||||||
for i in range(len):
|
for i in range(len):
|
||||||
retVal.append(self.getInt32())
|
retVal.append(self.getInt32())
|
||||||
elif subatomicType == STUint8array:
|
elif subatomicType == STUint8array:
|
||||||
len = self.getUint8()
|
len = self.getUint16()
|
||||||
retVal = []
|
retVal = []
|
||||||
for i in range(len):
|
for i in range(len):
|
||||||
retVal.append(self.getUint8())
|
retVal.append(self.getUint8())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user