#262 Fix bugs in obj writer - uses current dir for mtl, wrong nam

closed-fixed
nobody
scene (66)
2
2013-03-07
2013-02-10
curaga
No

The OBJ writer had two bugs: regardless of the target dir, it wrote the mtl file to the current dir, and it used the mesh's original name, not the new name.

Examples for each:

1) You are in /some/random/dir. You tell irr to write to /tmp/dest.obj. The mtl file goes to the current dir still, I expect it to go next to the obj file.
2) Say you load orig.ply and write to newfile.obj. The mtl file is not named newfile.mtl, but orig.mtl.

This patch fixes both.

Discussion

  • Christian Stehno

    • priority: 5 --> 2
    • labels: --> scene
    • status: open --> closed-fixed
     
  • Christian Stehno

    Tried to make it a little denser, using the path API. Hopefully got all things working, test case will follow once I find a good testing routine.

     
  • Christian Stehno

    This patch has been accepted and commited to SVN. It will be part of the next release.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks