Merge pull request #27 from paper-pauper/author-name

Added proper author field
This commit is contained in:
Rémi Verschelde
2016-08-31 11:12:11 +02:00
committed by GitHub

View File

@@ -1577,11 +1577,9 @@ class DaeExporter:
def export_asset(self):
self.writel(S_ASSET, 0, "<asset>")
# Why is this time stuff mandatory?, no one could care less...
self.writel(S_ASSET, 1, "<contributor>")
# Who made Collada, the FBI ?
self.writel(S_ASSET, 2, "<author> Anonymous </author>")
# Who made Collada, the FBI ?
author = bpy.context.user_preferences.system.author or "Anonymous"
self.writel(S_ASSET, 2, "<author>{}</author>".format(author))
self.writel(
S_ASSET, 2, "<authoring_tool>Collada Exporter for Blender 2.6+, "
"by Juan Linietsky (juan@codenix.com)</authoring_tool>")