mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-26 22:01:45 +00:00
Fixed, Wavefront .obj Export: long texture names were handled incorrectly causing exceptions during textures export.
This commit is contained in:
parent
d5d375834f
commit
6732e31493
1 changed files with 2 additions and 2 deletions
|
@ -96,7 +96,7 @@ namespace CodeImp.DoomBuilder.BuilderModes.IO
|
|||
|
||||
if(!id.IsImageLoaded) id.LoadImage();
|
||||
Bitmap bmp = id.GetBitmap();
|
||||
bmp.Save(Path.Combine(settings.ObjPath, s + ".PNG"), ImageFormat.Png);
|
||||
bmp.Save(Path.Combine(settings.ObjPath, Path.GetFileNameWithoutExtension(s) + ".PNG"), ImageFormat.Png);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -127,7 +127,7 @@ namespace CodeImp.DoomBuilder.BuilderModes.IO
|
|||
if(settings.Textures != null && Array.IndexOf(settings.Textures, s) != -1)
|
||||
flatname += "_FLAT";
|
||||
|
||||
bmp.Save(Path.Combine(settings.ObjPath, flatname + ".PNG"), ImageFormat.Png);
|
||||
bmp.Save(Path.Combine(settings.ObjPath, Path.GetFileNameWithoutExtension(flatname) + ".PNG"), ImageFormat.Png);
|
||||
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue