mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
oops, shouldn't double int8array length
This commit is contained in:
parent
f6239d56cd
commit
f23b139f06
@ -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) << 1)
|
self.addUint8(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) << 1)
|
self.addUint8(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() >> 1
|
len = self.getUint8()
|
||||||
retVal = []
|
retVal = []
|
||||||
for i in range(len):
|
for i in range(len):
|
||||||
retVal.append(self.getInt8())
|
retVal.append(self.getInt8())
|
||||||
@ -47,7 +47,7 @@
|
|||||||
for i in range(len):
|
for i in range(len):
|
||||||
retVal.append(self.getUint8())
|
retVal.append(self.getUint8())
|
||||||
elif subatomicType == STUint16array:
|
elif subatomicType == STUint16array:
|
||||||
len = self.getUint16() >> 1
|
len = self.getUint16()
|
||||||
retVal = []
|
retVal = []
|
||||||
for i in range(len):
|
for i in range(len):
|
||||||
retVal.append(self.getUint16())
|
retVal.append(self.getUint16())
|
||||||
|
@ -1,12 +1,19 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
|
|
||||||
|
# -w will run with WireGL.
|
||||||
|
wgl=
|
||||||
|
if [ x"$1" = x"-w" ]; then
|
||||||
|
shift 1
|
||||||
|
wgl=wgl
|
||||||
|
fi
|
||||||
|
|
||||||
# Linux case
|
# Linux case
|
||||||
if [ -z "$PANDA_ROOT" ]; then
|
if [ -z "$PANDA_ROOT" ]; then
|
||||||
# Convert semicolons back to colons
|
# Convert semicolons back to colons
|
||||||
PYTHONPATH=`echo $PYTHONPATH | sed 'y/;/:/'`
|
PYTHONPATH=`echo $PYTHONPATH | sed 'y/;/:/'`
|
||||||
export PYTHONPATH
|
export PYTHONPATH
|
||||||
# Run unbuffered output, with any options passed in
|
# Run unbuffered output, with any options passed in
|
||||||
exec python -u $*
|
exec $wgl python -u $*
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -47,13 +54,6 @@ fi
|
|||||||
HOME=`cygpath -w $HOME`
|
HOME=`cygpath -w $HOME`
|
||||||
export HOME
|
export HOME
|
||||||
|
|
||||||
# -w will run with WireGL.
|
|
||||||
wgl=
|
|
||||||
if [ x"$1" = x"-w" ]; then
|
|
||||||
shift 1
|
|
||||||
wgl=wgl
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ x"$1" = x"-msdev" ]; then
|
if [ x"$1" = x"-msdev" ]; then
|
||||||
# used for local machine debugging of vc dlls called by python
|
# used for local machine debugging of vc dlls called by python
|
||||||
shift 1
|
shift 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user