Improved Blender/Collada -colonly import creating collision shapes for empties
This commit is contained in:
parent
a0ac4293c1
commit
494847f0d1
5 changed files with 94 additions and 18 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue