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