diff options
Diffstat (limited to 'io_scene_x3d')
-rw-r--r-- | io_scene_x3d/__init__.py | 1 | ||||
-rw-r--r-- | io_scene_x3d/export_x3d.py | 2 | ||||
-rw-r--r-- | io_scene_x3d/import_x3d.py | 3 |
3 files changed, 2 insertions, 4 deletions
diff --git a/io_scene_x3d/__init__.py b/io_scene_x3d/__init__.py index c176d95c..c49a86a8 100644 --- a/io_scene_x3d/__init__.py +++ b/io_scene_x3d/__init__.py @@ -130,7 +130,6 @@ class ExportX3D(bpy.types.Operator, ExportHelper): def execute(self, context): from . import export_x3d - from mathutils import Matrix keywords = self.as_keywords(ignore=("axis_forward", "axis_up", "check_existing", "filter_glob")) global_matrix = axis_conversion(to_forward=self.axis_forward, to_up=self.axis_up).to_4x4() diff --git a/io_scene_x3d/export_x3d.py b/io_scene_x3d/export_x3d.py index c8821072..823b8ff4 100644 --- a/io_scene_x3d/export_x3d.py +++ b/io_scene_x3d/export_x3d.py @@ -1263,7 +1263,7 @@ def export(file, ident = '\t\t' if use_selection: - objects = [obj for obj in scene.objects if obj.is_visible(scene) and o.select] + objects = [obj for obj in scene.objects if obj.is_visible(scene) and obj.select] else: objects = [obj for obj in scene.objects if obj.is_visible(scene)] diff --git a/io_scene_x3d/import_x3d.py b/io_scene_x3d/import_x3d.py index 28c0abac..1ee0e9f5 100644 --- a/io_scene_x3d/import_x3d.py +++ b/io_scene_x3d/import_x3d.py @@ -601,7 +601,6 @@ class vrmlNode(object): # See if this is a proto name if AS_CHILD: - child_array = None for child in self_real.children: if child.id and len(child.id) == 1 and child.id[0] == field: return child @@ -1881,7 +1880,7 @@ def importMesh_IndexedLineSet(geom, ancestry): for line in lines: if not line: continue - co = points[line[0]] + # co = points[line[0]] # UNUSED nu = bpycurve.splines.new('POLY') nu.points.add(len(line) - 1) # the new nu has 1 point to begin with for il, pt in zip(line, nu.points): |