[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [4706] trunk/py/scripts/addons/ io_scene_fbx/parse_fbx.py: found another data type - byte arrays.

Campbell Barton ideasman42 at gmail.com
Wed Aug 28 08:20:33 CEST 2013


Revision: 4706
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=4706
Author:   campbellbarton
Date:     2013-08-28 06:20:32 +0000 (Wed, 28 Aug 2013)
Log Message:
-----------
found another data type - byte arrays. add support.

Modified Paths:
--------------
    trunk/py/scripts/addons/io_scene_fbx/parse_fbx.py

Modified: trunk/py/scripts/addons/io_scene_fbx/parse_fbx.py
===================================================================
--- trunk/py/scripts/addons/io_scene_fbx/parse_fbx.py	2013-08-28 05:01:12 UTC (rev 4705)
+++ trunk/py/scripts/addons/io_scene_fbx/parse_fbx.py	2013-08-28 06:20:32 UTC (rev 4706)
@@ -91,7 +91,8 @@
     b'i'[0]: lambda read: unpack_array(read, 'i', 4, True),   # array (int)
     b'd'[0]: lambda read: unpack_array(read, 'd', 8, False),  # array (double)
     b'l'[0]: lambda read: unpack_array(read, 'q', 8, True),   # array (long)
-    b'b'[0]: lambda read: unpack_array(read, 'b', 1, False),  # bool array
+    b'b'[0]: lambda read: unpack_array(read, 'b', 1, False),  # array (bool)
+    b'c'[0]: lambda read: unpack_array(read, 'B', 1, False),  # array (ubyte)
     }
 
 
@@ -184,4 +185,5 @@
 FLOAT64_ARRAY = b'd'[0],
 INT64_ARRAY = b'l'[0],
 BOOL_ARRAY = b'b'[0],
+BYTE_ARRAY = b'c'[0],
 ))



More information about the Bf-extensions-cvs mailing list