[Bf-extensions-cvs] [4e25de77] master: Fix T52029: Blender 2.78a doesn't import user properties from FBX file.

Bastien Montagne noreply at git.blender.org
Tue Jul 11 19:37:44 CEST 2017


Commit: 4e25de776a09e9d6bb6ccac9e935c32ea0952d95
Author: Bastien Montagne
Date:   Tue Jul 11 19:35:28 2017 +0200
Branches: master
https://developer.blender.org/rBA4e25de776a09e9d6bb6ccac9e935c32ea0952d95

Fix T52029: Blender 2.78a doesn't import user properties from FBX file.

Customprop handling helper was called with wrong data for objects and
bones. Many thanks to Nik S (@proteamer) for spotting the issue,
investigating it and finding the solution!

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

M	io_scene_fbx/__init__.py
M	io_scene_fbx/import_fbx.py

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

diff --git a/io_scene_fbx/__init__.py b/io_scene_fbx/__init__.py
index 039e7952..a3cb049e 100644
--- a/io_scene_fbx/__init__.py
+++ b/io_scene_fbx/__init__.py
@@ -21,7 +21,7 @@
 bl_info = {
     "name": "FBX format",
     "author": "Campbell Barton, Bastien Montagne, Jens Restemeier",
-    "version": (3, 7, 11),
+    "version": (3, 7, 12),
     "blender": (2, 77, 0),
     "location": "File > Import-Export",
     "description": "FBX IO meshes, UV's, vertex colors, materials, textures, cameras, lamps and actions",
diff --git a/io_scene_fbx/import_fbx.py b/io_scene_fbx/import_fbx.py
index 543615d6..49af2308 100644
--- a/io_scene_fbx/import_fbx.py
+++ b/io_scene_fbx/import_fbx.py
@@ -1923,7 +1923,7 @@ class FbxImportHelperNode:
         obj.matrix_basis = self.get_matrix()
 
         if settings.use_custom_props:
-            blen_read_custom_properties(fbx_props[0], obj, settings)
+            blen_read_custom_properties(self.fbx_elem, obj, settings)
 
         return obj
 
@@ -2072,7 +2072,7 @@ class FbxImportHelperNode:
                 assert(fbx_props[0] is not None)
 
                 if settings.use_custom_props:
-                    blen_read_custom_properties(fbx_props[0], arm, settings)
+                    blen_read_custom_properties(self.fbx_elem, arm, settings)
 
             # instance in scene
             obj_base = scene.objects.link(arm)



More information about the Bf-extensions-cvs mailing list