mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-02-17 01:22:18 +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();
|
if(!id.IsImageLoaded) id.LoadImage();
|
||||||
Bitmap bmp = id.GetBitmap();
|
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
|
else
|
||||||
{
|
{
|
||||||
|
@ -127,7 +127,7 @@ namespace CodeImp.DoomBuilder.BuilderModes.IO
|
||||||
if(settings.Textures != null && Array.IndexOf(settings.Textures, s) != -1)
|
if(settings.Textures != null && Array.IndexOf(settings.Textures, s) != -1)
|
||||||
flatname += "_FLAT";
|
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
|
else
|
||||||
|
|
Loading…
Reference in a new issue