STL writer does now also write binary files when EMWF_WRITE_BINARY flag is used. Based on patch from JLouisB. (Forum: http://irrlicht.sourceforge.net/forum/viewtopic.php?f=9&t=52261)
(EMWF_WRITE_COMPRESSED also still works for downward compatibility) git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5608 dfc29bdd-3216-0410-991c-e03cc46cb475master
parent
2757651d10
commit
fb39389bb8
|
@ -1,5 +1,7 @@
|
|||
--------------------------
|
||||
Changes in 1.9 (not yet released)
|
||||
- STL writer does now also write binary files when EMWF_WRITE_BINARY flag is used. Based on patch from JLouisB. (Forum: http://irrlicht.sourceforge.net/forum/viewtopic.php?f=9&t=52261)
|
||||
(EMWF_WRITE_COMPRESSED also still works for downward compatibility)
|
||||
- Improved PLY exporter. Thanks for Patch from JLouisB. (Forum: http://irrlicht.sourceforge.net/forum/viewtopic.php?f=9&t=52261):
|
||||
- Support for UV and vertex colors.
|
||||
- Support for binary PLY files export with the EMWF_WRITE_BINARY flag
|
||||
|
|
|
@ -45,9 +45,12 @@ namespace scene
|
|||
EMWF_NONE = 0,
|
||||
|
||||
//! write lightmap textures out if possible
|
||||
//! Currently not used by any Irrlicht mesh-writer
|
||||
// (Note: User meshwriters can still use it)
|
||||
EMWF_WRITE_LIGHTMAPS = 0x1,
|
||||
|
||||
//! write in a way that consumes less disk space
|
||||
// (Note: Mainly there for user meshwriters)
|
||||
EMWF_WRITE_COMPRESSED = 0x2,
|
||||
|
||||
//! write in binary format rather than text
|
||||
|
|
|
@ -54,7 +54,7 @@ bool CSTLMeshWriter::writeMesh(io::IWriteFile* file, scene::IMesh* mesh, s32 fla
|
|||
|
||||
os::Printer::log("Writing mesh", file->getFileName());
|
||||
|
||||
if (flags & scene::EMWF_WRITE_COMPRESSED)
|
||||
if (flags & (scene::EMWF_WRITE_BINARY|scene::EMWF_WRITE_COMPRESSED) )
|
||||
return writeMeshBinary(file, mesh, flags);
|
||||
else
|
||||
return writeMeshASCII(file, mesh, flags);
|
||||
|
|
Loading…
Reference in New Issue