mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
protect against possibly-missing STBlob32
This commit is contained in:
parent
3573ccb9aa
commit
f8d1734379
@ -25,7 +25,7 @@
|
|||||||
self.addString(arg)
|
self.addString(arg)
|
||||||
elif subatomicType == DCSubatomicType.STBlob:
|
elif subatomicType == DCSubatomicType.STBlob:
|
||||||
self.addString(arg)
|
self.addString(arg)
|
||||||
elif subatomicType == DCSubatomicType.STBlob32:
|
elif hasattr(DCSubatomicType, "STBlob32") and subatomicType == DCSubatomicType.STBlob32:
|
||||||
self.addString32(arg)
|
self.addString32(arg)
|
||||||
elif subatomicType == DCSubatomicType.STInt8array:
|
elif subatomicType == DCSubatomicType.STInt8array:
|
||||||
self.addUint16(len(arg))
|
self.addUint16(len(arg))
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
retVal = self.getString()
|
retVal = self.getString()
|
||||||
elif subatomicType == DCSubatomicType.STBlob:
|
elif subatomicType == DCSubatomicType.STBlob:
|
||||||
retVal = self.getString()
|
retVal = self.getString()
|
||||||
elif subatomicType == DCSubatomicType.STBlob32:
|
elif hasattr(DCSubatomicType, "STBlob32") and subatomicType == DCSubatomicType.STBlob32:
|
||||||
retVal = self.getString32()
|
retVal = self.getString32()
|
||||||
elif subatomicType == DCSubatomicType.STInt8array:
|
elif subatomicType == DCSubatomicType.STInt8array:
|
||||||
len = self.getUint16()
|
len = self.getUint16()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user