diff options
author | Juan Linietsky <reduzio@gmail.com> | 2014-08-14 10:31:38 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2014-08-14 10:31:38 -0300 |
commit | 2ee4ac183babedd679e901b0158f5268556deceb (patch) | |
tree | c0b5215b7ab17186835e1919912fa09de7301bfb /tools/export/blender25 | |
parent | c3e1d7b7c788530dc69e973352763a90da05d4e1 (diff) |
Little Bits
-=-=-=-=-=-
-Fixed small bugs all around
-Added ability to show/hide entire sections of the spatial (3D) tree
-WIP new vehicle (not ready yet) based on Bullet
Diffstat (limited to 'tools/export/blender25')
-rw-r--r-- | tools/export/blender25/io_scene_dae/export_dae.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/export/blender25/io_scene_dae/export_dae.py b/tools/export/blender25/io_scene_dae/export_dae.py index 15ec77cf8f..ec907a998d 100644 --- a/tools/export/blender25/io_scene_dae/export_dae.py +++ b/tools/export/blender25/io_scene_dae/export_dae.py @@ -293,6 +293,9 @@ class DaeExporter: self.writel(S_FX,6,'</bump>') self.writel(S_FX,5,'</technique>') + self.writel(S_FX,5,'<technique profile="GOOGLEEARTH">') + self.writel(S_FX,6,'<double_sided>'+["0","1"][double_sided_hint]+"</double_sided>") + self.writel(S_FX,5,'</technique>') self.writel(S_FX,4,'</extra>') self.writel(S_FX,3,'</technique>') @@ -359,7 +362,7 @@ class DaeExporter: mat= None if (mat!=None): - materials[f.material_index]=self.export_material( mat ) + materials[f.material_index]=self.export_material( mat,mesh.show_double_sided ) else: materials[f.material_index]=None #weird, has no material? @@ -730,7 +733,7 @@ class DaeExporter: self.writel(S_LAMPS,2,'<optics>') self.writel(S_LAMPS,3,'<technique_common>') - if (light.type=="POINT" or light.type=="HEMI"): + if (light.type=="POINT"): self.writel(S_LAMPS,4,'<point>') self.writel(S_LAMPS,5,'<color>'+strarr(light.color)+'</color>') att_by_distance = 2.0 / light.distance # convert to linear attenuation |