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:
authorCampbell Barton <ideasman42@gmail.com>2011-02-26 18:41:49 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-02-26 18:41:49 +0300
commit2be8deaac483f25b70632800468baddd2f92537b (patch)
treebec7d05762518e010b554680a5ac4586aa274f5a /io_scene_x3d
parent45c0679c7d2011d9ec2d45bb373cac42b0cd3325 (diff)
patch [#26220] Patch to allow lit and textured shapes for X3D exporter in SVN
from Michalis Kamburelis (kambi)
Diffstat (limited to 'io_scene_x3d')
-rw-r--r--io_scene_x3d/export_x3d.py11
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