Skip to content

Commit

Permalink
Remove no more used layer filter
Browse files Browse the repository at this point in the history
  • Loading branch information
julienduroure committed May 28, 2019
1 parent ecb1fc4 commit 5bf6e36
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 15 deletions.
6 changes: 0 additions & 6 deletions addons/io_scene_gltf2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,12 +205,6 @@ def __init__(self):
default=False
)

# export_layers = BoolProperty(
# name='All layers',
# description='Export all layers, rather than just the first',
# default=True
# )

export_extras = BoolProperty(
name='Custom Properties',
description='Export custom properties as glTF extras',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
FILTERED_CAMERAS = 'filtered_cameras'

APPLY = 'gltf_apply'
LAYERS = 'gltf_layers'
SELECTED = 'gltf_selected'
SKINS = 'gltf_skins'
DISPLACEMENT = 'gltf_displacement'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,6 @@ def __filter_node(blender_object, export_settings):
else:
if export_settings[gltf2_blender_export_keys.SELECTED] and blender_object.select_get() is False:
return False
if not export_settings[gltf2_blender_export_keys.LAYERS] and not blender_object.layers[0]:
return False
if bpy.app.version < (2, 80, 0):
if blender_object.dupli_group is not None and not blender_object.dupli_group.layers[0]:
return False
else:
if blender_object.instance_collection is not None and not blender_object.instance_collection.layers[0]:
return False

return True

Expand Down

0 comments on commit 5bf6e36

Please sign in to comment.