IsraelAbebe / blender2ogre

Automatically exported from code.google.com/p/blender2ogre
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Needs to check if outputting to /tmp or ~/.wine/drive_c/tmp on Linux #48

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use the native version of OgreMeshy instead of Wine.
2. Click on the OgreMeshy preview button.
3. The mesh will be placed in your Wine directory, and OgreMeshy will be unable 
to load it since it's attempting to load it from /tmp.  

What is the expected output? What do you see instead?
blender2ogre does not detect if you're using the Wine version of OgreMeshy or a 
Linux native binary.  When exporting, the mesh preview is always placed in 
~/.wine/drive_c/tmp.  When the native version of OgreMeshy tries to open the 
mesh, it is unable to since it attempts to load the mesh preview from /tmp 
instead of ~/.wine/drive_c/tmp.

What version of the product are you using? On what operating system?
Using revision 0dc0748d7fee on Gentoo Linux.

Please provide any additional information below.
Perhaps blender2ogre should check if the extension ends with .exe and is 
running on Linux to determine if the mesh preview should be placed in 
~/.wine/tmp or /tmp.

This should probably also apply to Tundra2.  I haven't been able to build and 
run Tundra2 yet, but I presume Tundra2 loads mesh previews the same way as 
OgreMeshy.

Original issue reported on code.google.com by vax...@gmail.com on 19 Mar 2012 at 11:52

GoogleCodeExporter commented 8 years ago
Cloned and made a revision to fix the issue.

http://code.google.com/r/vax456-fixes-i-need/source/list?name=determine-wine-exe

Original comment by vax...@gmail.com on 19 Mar 2012 at 3:25

GoogleCodeExporter commented 8 years ago
thanks for keeping up the tundra support, i'm not working on it anymore.  Would 
you like commit rights to blender2ogre?

Original comment by goatman.py@gmail.com on 3 Apr 2012 at 4:59

GoogleCodeExporter commented 8 years ago
vax456: I have fixed this issue by manually copying code from your commit. I'm 
sorry if this causes you headache when merging the main repo to your, hopefully 
it will be ok. I'm not very experienced with hg so I didn't start to 
investigate how to pull your changes as is.

I have also added you as a contributor to the .script and readme files.

Commit 
http://code.google.com/p/blender2ogre/source/detail?r=c995abd8004d93b16fc0679f38
f9cb5a8d51545d

Original comment by jo...@adminotech.com on 10 Sep 2012 at 12:29