diff options
Diffstat (limited to 'io_scene_x3d/export_x3d.py')
-rw-r--r-- | io_scene_x3d/export_x3d.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/io_scene_x3d/export_x3d.py b/io_scene_x3d/export_x3d.py index 5074351a..f7bba662 100644 --- a/io_scene_x3d/export_x3d.py +++ b/io_scene_x3d/export_x3d.py @@ -396,8 +396,9 @@ class x3d_class: is_smooth = True break + self.write_indented("<Appearance>\n", 1) + if image: - self.write_indented("<Appearance>\n", 1) self.writeImageTexture(image) if mesh_materials_use_face_texture[material_index]: @@ -427,12 +428,10 @@ class x3d_class: fw("rotation=\"%.6f\" " % rot) fw("/>\n") - self.write_indented("</Appearance>\n", -1) - - elif material: - self.write_indented("<Appearance>\n", 1) + if material: self.writeMaterial(material, self.cleanStr(material.name, ""), world) - self.write_indented("</Appearance>\n", -1) + + self.write_indented("</Appearance>\n", -1) #-- IndexedFaceSet or IndexedLineSet |