glTF exporter: Remove no more used filter on layers

This commit is contained in:
Julien Duroure 2019-05-28 18:00:27 +02:00
parent a0cad0df8b
commit 354d26d751
3 changed files with 0 additions and 11 deletions

View File

@ -205,12 +205,6 @@ class ExportGLTF2_Base:
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',

View File

@ -25,7 +25,6 @@ FILTERED_OBJECTS = 'filtered_objects'
FILTERED_CAMERAS = 'filtered_cameras'
APPLY = 'gltf_apply'
LAYERS = 'gltf_layers'
SELECTED = 'gltf_selected'
SKINS = 'gltf_skins'
DISPLACEMENT = 'gltf_displacement'

View File

@ -71,10 +71,6 @@ def __filter_node(blender_object, export_settings):
return False
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 blender_object.instance_collection is not None and not blender_object.instance_collection.layers[0]:
return False
return True