From 77258389ffc74e23f7cc5f3e16b9f4971d9e8817 Mon Sep 17 00:00:00 2001
From: Campbell Barton <ideasman42@gmail.com>
Date: Thu, 28 Jul 2011 07:10:02 +0000
Subject: [PATCH] fix [#27896] B258.0 > X3D export > 2 bugs: Lib Groups,
 Rotation 0 0 0 0

---
 io_scene_x3d/export_x3d.py | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/io_scene_x3d/export_x3d.py b/io_scene_x3d/export_x3d.py
index 81c29b044..e39ed07e2 100644
--- a/io_scene_x3d/export_x3d.py
+++ b/io_scene_x3d/export_x3d.py
@@ -1229,9 +1229,6 @@ def export(file,
         world = scene.world
         free, derived = create_derived_objects(scene, obj_main)
 
-        if derived is None:
-            return
-
         if use_hierarchy:
             obj_main_matrix_world = obj_main.matrix_world
             if obj_main_parent:
@@ -1244,7 +1241,7 @@ def export(file,
 
             ident = writeTransform_begin(ident, obj_main_matrix if obj_main_parent else global_matrix * obj_main_matrix, suffix_quoted_str(obj_main_id, "_TRANSFORM"))
 
-        for obj, obj_matrix in derived:
+        for obj, obj_matrix in (() if derived is None else derived):
             obj_type = obj.type
 
             if use_hierarchy:
-- 
GitLab