Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Oeser <info@graphics-engineer.com>2019-07-16 16:38:29 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2019-07-17 11:13:28 +0300
commit37fe422f9a193007a31a3962b190660547b306b2 (patch)
tree770a05b9fa872a1fce0e0f3810987210d67b9ddf
parentea0873dedaa1b81e706bad49ed7997cdf11d5ec1 (diff)
X3D: Fix T67053: export with "Selection Only" error
Reviewers: brecht Maniphest Tasks: T67053 Differential Revision: https://developer.blender.org/D5269
-rw-r--r--io_scene_x3d/export_x3d.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/io_scene_x3d/export_x3d.py b/io_scene_x3d/export_x3d.py
index 92094dc6..2c606111 100644
--- a/io_scene_x3d/export_x3d.py
+++ b/io_scene_x3d/export_x3d.py
@@ -1497,9 +1497,10 @@ def export(file,
bpy.data.images.tag(False)
if use_selection:
- objects = [obj for obj in scene.objects if obj.visible_get(view_layer=view_layer) and obj.select]
+ objects = [obj for obj in view_layer.objects if obj.visible_get(view_layer=view_layer)
+ and obj.select_get(view_layer=view_layer)]
else:
- objects = [obj for obj in scene.objects if obj.visible_get(view_layer=view_layer)]
+ objects = [obj for obj in view_layer.objects if obj.visible_get(view_layer=view_layer)]
print('Info: starting X3D export to %r...' % file.name)
ident = ''