Fix T45756: FBX Export: bad handling of duplis (let's check on Object.is_duplicator, much cleaner solution).
This commit is contained in:
parent
9a3a63d01d
commit
94abe3b97f
Notes:
blender-bot
2023-02-14 19:54:14 +01:00
Referenced by issue #45756, FBX (binary) export gives massive amount of false error messages
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue