diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2015-08-12 13:56:04 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2015-08-12 13:56:04 +0300 |
commit | 94abe3b97f5c0b1afaa084dc8918464d27689b88 (patch) | |
tree | bbb2db92a700aeb31d149147792e7cd433028d22 /io_scene_fbx | |
parent | 9a3a63d01d0f563f6d2fcda55df6494e48f231fd (diff) |
Fix T45756: FBX Export: bad handling of duplis (let's check on Object.is_duplicator, much cleaner solution).
Diffstat (limited to 'io_scene_fbx')
-rw-r--r-- | io_scene_fbx/fbx_utils.py | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/io_scene_fbx/fbx_utils.py b/io_scene_fbx/fbx_utils.py index 56442a37..e2b3655d 100644 --- a/io_scene_fbx/fbx_utils.py +++ b/io_scene_fbx/fbx_utils.py @@ -1160,19 +1160,15 @@ class ObjectWrapper(metaclass=MetaObjectWrapper): # #### Duplis... def dupli_list_create(self, scene, settings='PREVIEW'): - if self._tag == 'OB': - # Sigh, why raise exception here? :/ - try: - self.bdata.dupli_list_create(scene, settings) - except: - pass + if self._tag == 'OB' and self.bdata.is_duplicator: + self.bdata.dupli_list_create(scene, settings) def dupli_list_clear(self): - if self._tag == 'OB': + if self._tag == 'OB'and self.bdata.is_duplicator: self.bdata.dupli_list_clear() def get_dupli_list(self): - if self._tag == 'OB': + if self._tag == 'OB'and self.bdata.is_duplicator: return (ObjectWrapper(dup) for dup in self.bdata.dupli_list) return () dupli_list = property(get_dupli_list) |