Skip to content

Commit

Permalink
Sync the chunkmask render settings with the viewport.
Browse files Browse the repository at this point in the history
  • Loading branch information
Simarilius-uk committed Jan 4, 2024
1 parent 3de6974 commit fa1c25a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion i_scene_cp77_gltf/importers/entity_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -552,8 +552,9 @@ def importEnt( filepath='', appearances=[], exclude_meshes=[], with_materials=Tr
cm_list.reverse()
for obj in objs:
subnum=int(obj.name[8:10])
# obj.hide_viewport=not cm_list[subnum]
#obj.hide_viewport=not cm_list[subnum]
obj.hide_set(not cm_list[subnum])
obj.hide_render=not cm_list[subnum]
#else:
except:
print("Failed on ",meshname)
Expand Down

0 comments on commit fa1c25a

Please sign in to comment.