summaryrefslogtreecommitdiff
path: root/tools/export/blender25
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2016-06-07 13:22:00 +0200
committerRémi Verschelde <remi@verschelde.fr>2016-06-07 13:22:00 +0200
commita21eb2b89dca54bcda4cb923d9e1ac01359aec27 (patch)
tree54224c4a9f953c1148cbf86eda1dbfdfac9e426d /tools/export/blender25
parentbf98095f46c4d9dbe55c0d07582d9f073f2f7405 (diff)
parent494847f0d106968e4f527eec088aeb84ab39b112 (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.py10
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)