update dna exporter for API changes
also print html name.
This commit is contained in:
@@ -112,7 +112,7 @@ class DNACatalogHTML:
|
|||||||
# ${version} and ${revision}
|
# ${version} and ${revision}
|
||||||
if bpy:
|
if bpy:
|
||||||
version = '.'.join(map(str, bpy.app.version))
|
version = '.'.join(map(str, bpy.app.version))
|
||||||
revision = bpy.app.build_revision[:-1]
|
revision = bpy.app.build_hash
|
||||||
else:
|
else:
|
||||||
version = str(header.Version)
|
version = str(header.Version)
|
||||||
revision = 'Unknown'
|
revision = 'Unknown'
|
||||||
@@ -404,7 +404,7 @@ def main():
|
|||||||
# Files
|
# Files
|
||||||
if '--dna-versioned' in sys.argv:
|
if '--dna-versioned' in sys.argv:
|
||||||
blender_version = '_'.join(map(str, bpy.app.version))
|
blender_version = '_'.join(map(str, bpy.app.version))
|
||||||
filename = 'dna-{0}-{1}_endian-{2}-r{3}'.format(sys.arch, sys.byteorder, blender_version, bpy.app.build_revision[2:-1])
|
filename = 'dna-{0}-{1}_endian-{2}-{3}'.format(sys.arch, sys.byteorder, blender_version, bpy.app.build_hash)
|
||||||
else:
|
else:
|
||||||
filename = 'dna'
|
filename = 'dna'
|
||||||
dir = os.path.dirname(__file__)
|
dir = os.path.dirname(__file__)
|
||||||
@@ -451,7 +451,7 @@ def main():
|
|||||||
os.remove(Path_Blend)
|
os.remove(Path_Blend)
|
||||||
|
|
||||||
# export dna to xhtml
|
# export dna to xhtml
|
||||||
log.info("6: export sdna to xhtml file")
|
log.info("6: export sdna to xhtml file: %r" % Path_HTML)
|
||||||
handleHTML = open(Path_HTML, "w")
|
handleHTML = open(Path_HTML, "w")
|
||||||
catalog.WriteToHTML(handleHTML)
|
catalog.WriteToHTML(handleHTML)
|
||||||
handleHTML.close()
|
handleHTML.close()
|
||||||
|
Reference in New Issue
Block a user