Skip to content

Commit

Permalink
Respect hide_render flag in fallback scanner
Browse files Browse the repository at this point in the history
  • Loading branch information
mgschwan committed Apr 8, 2018
1 parent bf21145 commit 0b6cca9
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions release/scripts/addons/blensor/scan_interface_pure.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,12 @@ def scene_to_mesh():

idx = 0
for ob in bpy.data.objects:
faces = faces_from_mesh(ob,Matrix(), use_mesh_modifiers=True)
for f in faces:
scene_faces.append(list(map(list,f[0:3])))
scene_obj.append(ob)
scene_materials.append(f[3])
if not ob.hide_render:
faces = faces_from_mesh(ob,Matrix(), use_mesh_modifiers=True)
for f in faces:
scene_faces.append(list(map(list,f[0:3])))
scene_obj.append(ob)
scene_materials.append(f[3])
return scene_faces, scene_obj, scene_materials

def faces_from_mesh(ob, global_matrix, use_mesh_modifiers=False):
Expand Down

0 comments on commit 0b6cca9

Please sign in to comment.