[Bf-extensions-cvs] [37fe422f] master: X3D: Fix T67053: export with "Selection Only" error
Philipp Oeser
noreply at git.blender.org
Wed Jul 17 10:15:13 CEST 2019
Commit: 37fe422f9a193007a31a3962b190660547b306b2
Author: Philipp Oeser
Date: Tue Jul 16 15:38:29 2019 +0200
Branches: master
https://developer.blender.org/rBA37fe422f9a193007a31a3962b190660547b306b2
X3D: Fix T67053: export with "Selection Only" error
Reviewers: brecht
Maniphest Tasks: T67053
Differential Revision: https://developer.blender.org/D5269
===================================================================
M io_scene_x3d/export_x3d.py
===================================================================
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 = ''
More information about the Bf-extensions-cvs
mailing list