[Bf-extensions-cvs] [381c6e3] master: Fix T43812: Not all blender objects have a 'library' member...

Bastien Montagne noreply at git.blender.org
Wed Feb 25 19:32:33 CET 2015


Commit: 381c6e3125500c6bcdf005aca2873501696f62bd
Author: Bastien Montagne
Date:   Wed Feb 25 19:31:42 2015 +0100
Branches: master
https://developer.blender.org/rBA381c6e3125500c6bcdf005aca2873501696f62bd

Fix T43812: Not all blender objects have a 'library' member...

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

M	io_scene_fbx/fbx_utils.py

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

diff --git a/io_scene_fbx/fbx_utils.py b/io_scene_fbx/fbx_utils.py
index 01a5520..3175149 100644
--- a/io_scene_fbx/fbx_utils.py
+++ b/io_scene_fbx/fbx_utils.py
@@ -285,7 +285,7 @@ def get_key_from_fbx_uuid(uuid):
 
 # Blender-specific key generators
 def get_bid_name(bid):
-    if bid.library is not None:
+    if getattr(bid, 'library', None) is not None:
         return "_L_".join((bid.name, bid.library.name))
     return bid.name



More information about the Bf-extensions-cvs mailing list