提交 3faa6272 编写于 作者: R rkusa

fix blender export for mesh visible on multiple layers

上级 a6e79f38
......@@ -502,12 +502,15 @@ def _on_visible_layer(obj, visible_layers):
:param visible_layers:
"""
is_visible = True
is_visible = False
for index, layer in enumerate(obj.layers):
if layer and index not in visible_layers:
logger.info('%s is on a hidden layer', obj.name)
is_visible = False
if layer and index in visible_layers:
is_visible = True
break
if not is_visible:
logger.info('%s is on a hidden layer', obj.name)
return is_visible
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册