Page MenuHome

Obj export adds blendfile name to the texture names
Closed, ResolvedPublic

Description

r45595, Win 7, 64 Bit

Exporting an obj file adds the blendfile name to the texture names. They become invalid by that. Looks like this then:

map_Kd testcubeloaded1.blend\grassborder.png

And that`s a path that will not work.

How to reproduce. Load the testcubeloaded1.blend. Export the content to obj. Have a look inside the mtl file. The blendfile name is added to the texture parts.

Note that this behaviour happens when i import a mesh, then save the blend file, then close and reopen Blender, reload the blend file, and save the file as obj then. It does not happen when i import a mesh and export it immediately. Then the path is correct.

Details

Type
Bug

Event Timeline

Fixed in svn3291.

Thanks for reporting!

Bastien Montagne (mont29) closed this task as Resolved.Apr 20 2012, 9:46 PM

Thanks for the fix :)