BGE PyAPI fixes
- CValue warning ShowDeprecationWarning("val = ob.attr", "val = ob['attr']"); had false positives because of python using getattr() internally. Only show the wanring now when a CValue is found.
- Py functions that accepted a vector and a GameObject were slowed down by PySequence_Check() first called on the GameObject, though this would fail it would try and get attributes from the game object - ending up in ~8 attribute lookups each time. Avoiding PySequence_Check() makes ob.getDistanceTo(otherOb) over twice as fast.
- Joystick hat events could crash the BGE for joysticks with more then 4 hats.
- PLY Import failed on PLY files from Carve, added some extra types.
This commit is contained in:
@@ -149,6 +149,7 @@ def read(filename):
|
||||
'uint8': 'B',
|
||||
'int16': 'h',
|
||||
'uint16': 'H',
|
||||
'ushort': 'H',
|
||||
'int': 'i',
|
||||
'int32': 'i',
|
||||
'uint': 'I',
|
||||
@@ -156,6 +157,7 @@ def read(filename):
|
||||
'float': 'f',
|
||||
'float32': 'f',
|
||||
'float64': 'd',
|
||||
'double': 'd',
|
||||
'string': 's'}
|
||||
obj_spec = object_spec()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user