mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-04 21:10:32 +00:00
Revert "revert #1148 as prematurely incorporated"
This reverts commit f946088214.
This commit is contained in:
parent
bd2121b674
commit
7216ba8530
22 changed files with 20385 additions and 1813 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue