Improved Blender/Collada -colonly import creating collision shapes for empties

This commit is contained in:
Pawel Kowal 2016-06-05 20:59:21 +02:00
parent a0ac4293c1
commit 494847f0d1
5 changed files with 94 additions and 18 deletions

View file

@ -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)