[Bf-extensions-cvs] [f12892ea] master: Fix T53875: json2fbx: error reading type spec

Campbell Barton noreply at git.blender.org
Tue Jan 23 23:54:44 CET 2018


Commit: f12892eadac836f73593cd9a48c52188c9b32c0c
Author: Campbell Barton
Date:   Wed Jan 24 09:54:28 2018 +1100
Branches: master
https://developer.blender.org/rBAf12892eadac836f73593cd9a48c52188c9b32c0c

Fix T53875: json2fbx: error reading type spec

===================================================================

M	io_scene_fbx/json2fbx.py

===================================================================

diff --git a/io_scene_fbx/json2fbx.py b/io_scene_fbx/json2fbx.py
index dc4c5bcc..579b45a7 100755
--- a/io_scene_fbx/json2fbx.py
+++ b/io_scene_fbx/json2fbx.py
@@ -108,9 +108,9 @@ def parse_json_rec(fbx_root, json_node):
         elif dt == "d":
             e.add_float64_array(d)
         elif dt == "b":
-            e.add_byte_array(d)
-        elif dt == "c":
             e.add_bool_array(d)
+        elif dt == "c":
+            e.add_byte_array(d)
 
     if name == "FBXVersion":
         assert(data_types == "I")



More information about the Bf-extensions-cvs mailing list