Skip to content
Snippets Groups Projects
Commit 1fc1a209 authored by Sergey Sharybin's avatar Sergey Sharybin
Browse files

Fix T49338: Export to OBJ add extra space to the texture file name on MTL file

parent fecd5c9f
No related branches found
No related tags found
No related merge requests found
...@@ -188,7 +188,10 @@ def write_mtl(scene, filepath, path_mode, copy_set, mtl_dict): ...@@ -188,7 +188,10 @@ def write_mtl(scene, filepath, path_mode, copy_set, mtl_dict):
options.append('-o %.6f %.6f %.6f' % mtex.offset[:]) options.append('-o %.6f %.6f %.6f' % mtex.offset[:])
if mtex.scale != Vector((1.0, 1.0, 1.0)): if mtex.scale != Vector((1.0, 1.0, 1.0)):
options.append('-s %.6f %.6f %.6f' % mtex.scale[:]) options.append('-s %.6f %.6f %.6f' % mtex.scale[:])
fw('%s %s %s\n' % (key, " ".join(options), repr(filepath)[1:-1])) if options:
fw('%s %s %s\n' % (key, " ".join(options), repr(filepath)[1:-1]))
else:
fw('%s %s\n' % (key, repr(filepath)[1:-1]))
def test_nurbs_compat(ob): def test_nurbs_compat(ob):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment