Revert "revert #1148 as prematurely incorporated"

This reverts commit f946088214.
This commit is contained in:
marauder2k7 2024-01-20 18:01:57 +00:00
parent bd2121b674
commit 7216ba8530
22 changed files with 20385 additions and 1813 deletions

View file

@ -504,14 +504,10 @@ void TSLastDetail::_update()
String imposterPath = _getDiffuseMapPath();
String normalsPath = _getNormalMapPath();
FileStream stream;
if ( stream.open( imposterPath, Torque::FS::File::Write ) )
destBmp.writeBitmap( "png", stream );
stream.close();
if ( stream.open( normalsPath, Torque::FS::File::Write ) )
destNormal.writeBitmap( "png", stream );
stream.close();
if (!destBmp.writeBitmap("png", imposterPath))
Con::errorf("TSLastDetail::_update() - failed to write imposter %s", imposterPath.c_str());
if (!destNormal.writeBitmap("png", normalsPath))
Con::errorf("TSLastDetail::_update() - failed to write normal %s", normalsPath.c_str());
}
// DEBUG: Some code to force usage of a test image.