diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2016-06-07 13:22:00 +0200 |
---|---|---|
committer | Rémi Verschelde <remi@verschelde.fr> | 2016-06-07 13:22:00 +0200 |
commit | a21eb2b89dca54bcda4cb923d9e1ac01359aec27 (patch) | |
tree | 54224c4a9f953c1148cbf86eda1dbfdfac9e426d /tools/export/blender25 | |
parent | bf98095f46c4d9dbe55c0d07582d9f073f2f7405 (diff) | |
parent | 494847f0d106968e4f527eec088aeb84ab39b112 (diff) |
Merge pull request #5057 from pkowal1982/master
Improved Blender/Collada -colonly import creating collision shapes fo…
Diffstat (limited to 'tools/export/blender25')
-rw-r--r-- | tools/export/blender25/io_scene_dae/export_dae.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/export/blender25/io_scene_dae/export_dae.py b/tools/export/blender25/io_scene_dae/export_dae.py index cdd845e384..3bb440ffe5 100644 --- a/tools/export/blender25/io_scene_dae/export_dae.py +++ b/tools/export/blender25/io_scene_dae/export_dae.py @@ -1104,6 +1104,14 @@ class DaeExporter: self.writel(S_NODES,il,'<instance_light url="#'+lightid+'"/>') + def export_empty_node(self,node,il): + + self.writel(S_NODES,4,'<extra>') + self.writel(S_NODES,5,'<technique profile="GODOT">') + self.writel(S_NODES,6,'<empty_draw_type>'+node.empty_draw_type+'</empty_draw_type>') + self.writel(S_NODES,5,'</technique>') + self.writel(S_NODES,4,'</extra>') + def export_curve(self,curve): @@ -1264,6 +1272,8 @@ class DaeExporter: self.export_camera_node(node,il) elif (node.type=="LAMP"): self.export_lamp_node(node,il) + elif (node.type=="EMPTY"): + self.export_empty_node(node,il) for x in node.children: self.export_node(x,il) |