Commit 8e6db671 authored by cutealien's avatar cutealien

Reduce a bunch of log messages in B3DLoader from ELL_INFORMATION to ELL_DEBUG...

Reduce a bunch of log messages in B3DLoader from ELL_INFORMATION to ELL_DEBUG (thx@ entity for telling).


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4729 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 008f14bc
...@@ -164,7 +164,7 @@ bool CB3DMeshFileLoader::readChunkNODE(CSkinnedMesh::SJoint *inJoint) ...@@ -164,7 +164,7 @@ bool CB3DMeshFileLoader::readChunkNODE(CSkinnedMesh::SJoint *inJoint)
for ( u32 i=1; i < B3dStack.size(); ++i ) for ( u32 i=1; i < B3dStack.size(); ++i )
logStr += "-"; logStr += "-";
logStr += "read ChunkNODE"; logStr += "read ChunkNODE";
os::Printer::log(logStr.c_str(), joint->Name.c_str()); os::Printer::log(logStr.c_str(), joint->Name.c_str(), ELL_DEBUG);
#endif #endif
f32 position[3], scale[3], rotation[4]; f32 position[3], scale[3], rotation[4];
...@@ -250,7 +250,7 @@ bool CB3DMeshFileLoader::readChunkMESH(CSkinnedMesh::SJoint *inJoint) ...@@ -250,7 +250,7 @@ bool CB3DMeshFileLoader::readChunkMESH(CSkinnedMesh::SJoint *inJoint)
for ( u32 i=1; i < B3dStack.size(); ++i ) for ( u32 i=1; i < B3dStack.size(); ++i )
logStr += "-"; logStr += "-";
logStr += "read ChunkMESH"; logStr += "read ChunkMESH";
os::Printer::log(logStr.c_str()); os::Printer::log(logStr.c_str(), ELL_DEBUG);
#endif #endif
s32 brushID; s32 brushID;
...@@ -346,7 +346,7 @@ bool CB3DMeshFileLoader::readChunkVRTS(CSkinnedMesh::SJoint *inJoint) ...@@ -346,7 +346,7 @@ bool CB3DMeshFileLoader::readChunkVRTS(CSkinnedMesh::SJoint *inJoint)
for ( u32 i=1; i < B3dStack.size(); ++i ) for ( u32 i=1; i < B3dStack.size(); ++i )
logStr += "-"; logStr += "-";
logStr += "ChunkVRTS"; logStr += "ChunkVRTS";
os::Printer::log(logStr.c_str()); os::Printer::log(logStr.c_str(), ELL_DEBUG);
#endif #endif
const s32 max_tex_coords = 3; const s32 max_tex_coords = 3;
...@@ -452,7 +452,7 @@ bool CB3DMeshFileLoader::readChunkTRIS(scene::SSkinMeshBuffer *meshBuffer, u32 m ...@@ -452,7 +452,7 @@ bool CB3DMeshFileLoader::readChunkTRIS(scene::SSkinMeshBuffer *meshBuffer, u32 m
for ( u32 i=1; i < B3dStack.size(); ++i ) for ( u32 i=1; i < B3dStack.size(); ++i )
logStr += "-"; logStr += "-";
logStr += "ChunkTRIS"; logStr += "ChunkTRIS";
os::Printer::log(logStr.c_str()); os::Printer::log(logStr.c_str(), ELL_DEBUG);
#endif #endif
bool showVertexWarning=false; bool showVertexWarning=false;
...@@ -574,7 +574,7 @@ bool CB3DMeshFileLoader::readChunkBONE(CSkinnedMesh::SJoint *inJoint) ...@@ -574,7 +574,7 @@ bool CB3DMeshFileLoader::readChunkBONE(CSkinnedMesh::SJoint *inJoint)
for ( u32 i=1; i < B3dStack.size(); ++i ) for ( u32 i=1; i < B3dStack.size(); ++i )
logStr += "-"; logStr += "-";
logStr += "read ChunkBONE"; logStr += "read ChunkBONE";
os::Printer::log(logStr.c_str()); os::Printer::log(logStr.c_str(), ELL_DEBUG);
#endif #endif
if (B3dStack.getLast().length > 8) if (B3dStack.getLast().length > 8)
...@@ -621,7 +621,7 @@ bool CB3DMeshFileLoader::readChunkKEYS(CSkinnedMesh::SJoint *inJoint) ...@@ -621,7 +621,7 @@ bool CB3DMeshFileLoader::readChunkKEYS(CSkinnedMesh::SJoint *inJoint)
for ( u32 i=1; i < B3dStack.size(); ++i ) for ( u32 i=1; i < B3dStack.size(); ++i )
logStr += "-"; logStr += "-";
logStr += "read ChunkKEYS"; logStr += "read ChunkKEYS";
os::Printer::log(logStr.c_str()); os::Printer::log(logStr.c_str(), ELL_DEBUG);
} }
#endif #endif
...@@ -765,7 +765,7 @@ bool CB3DMeshFileLoader::readChunkANIM() ...@@ -765,7 +765,7 @@ bool CB3DMeshFileLoader::readChunkANIM()
for ( u32 i=1; i < B3dStack.size(); ++i ) for ( u32 i=1; i < B3dStack.size(); ++i )
logStr += "-"; logStr += "-";
logStr += "read ChunkANIM"; logStr += "read ChunkANIM";
os::Printer::log(logStr.c_str()); os::Printer::log(logStr.c_str(), ELL_DEBUG);
#endif #endif
s32 animFlags; //not stored\used s32 animFlags; //not stored\used
...@@ -796,7 +796,7 @@ bool CB3DMeshFileLoader::readChunkTEXS() ...@@ -796,7 +796,7 @@ bool CB3DMeshFileLoader::readChunkTEXS()
for ( u32 i=1; i < B3dStack.size(); ++i ) for ( u32 i=1; i < B3dStack.size(); ++i )
logStr += "-"; logStr += "-";
logStr += "read ChunkTEXS"; logStr += "read ChunkTEXS";
os::Printer::log(logStr.c_str()); os::Printer::log(logStr.c_str(), ELL_DEBUG);
#endif #endif
while((B3dStack.getLast().startposition + B3dStack.getLast().length) > B3DFile->getPos()) //this chunk repeats while((B3dStack.getLast().startposition + B3dStack.getLast().length) > B3DFile->getPos()) //this chunk repeats
...@@ -807,7 +807,7 @@ bool CB3DMeshFileLoader::readChunkTEXS() ...@@ -807,7 +807,7 @@ bool CB3DMeshFileLoader::readChunkTEXS()
readString(B3dTexture.TextureName); readString(B3dTexture.TextureName);
B3dTexture.TextureName.replace('\\','/'); B3dTexture.TextureName.replace('\\','/');
#ifdef _B3D_READER_DEBUG #ifdef _B3D_READER_DEBUG
os::Printer::log("read Texture", B3dTexture.TextureName.c_str()); os::Printer::log("read Texture", B3dTexture.TextureName.c_str(), ELL_DEBUG);
#endif #endif
B3DFile->read(&B3dTexture.Flags, sizeof(s32)); B3DFile->read(&B3dTexture.Flags, sizeof(s32));
...@@ -817,8 +817,8 @@ bool CB3DMeshFileLoader::readChunkTEXS() ...@@ -817,8 +817,8 @@ bool CB3DMeshFileLoader::readChunkTEXS()
B3dTexture.Blend = os::Byteswap::byteswap(B3dTexture.Blend); B3dTexture.Blend = os::Byteswap::byteswap(B3dTexture.Blend);
#endif #endif
#ifdef _B3D_READER_DEBUG #ifdef _B3D_READER_DEBUG
os::Printer::log("Flags", core::stringc(B3dTexture.Flags).c_str()); os::Printer::log("Flags", core::stringc(B3dTexture.Flags).c_str(), ELL_DEBUG);
os::Printer::log("Blend", core::stringc(B3dTexture.Blend).c_str()); os::Printer::log("Blend", core::stringc(B3dTexture.Blend).c_str(), ELL_DEBUG);
#endif #endif
readFloats(&B3dTexture.Xpos, 1); readFloats(&B3dTexture.Xpos, 1);
readFloats(&B3dTexture.Ypos, 1); readFloats(&B3dTexture.Ypos, 1);
...@@ -840,7 +840,7 @@ bool CB3DMeshFileLoader::readChunkBRUS() ...@@ -840,7 +840,7 @@ bool CB3DMeshFileLoader::readChunkBRUS()
for ( u32 i=1; i < B3dStack.size(); ++i ) for ( u32 i=1; i < B3dStack.size(); ++i )
logStr += "-"; logStr += "-";
logStr += "read ChunkBRUS"; logStr += "read ChunkBRUS";
os::Printer::log(logStr.c_str()); os::Printer::log(logStr.c_str(), ELL_DEBUG);
#endif #endif
u32 n_texs; u32 n_texs;
...@@ -861,7 +861,7 @@ bool CB3DMeshFileLoader::readChunkBRUS() ...@@ -861,7 +861,7 @@ bool CB3DMeshFileLoader::readChunkBRUS()
core::stringc name; core::stringc name;
readString(name); readString(name);
#ifdef _B3D_READER_DEBUG #ifdef _B3D_READER_DEBUG
os::Printer::log("read Material", name); os::Printer::log("read Material", name, ELL_DEBUG);
#endif #endif
Materials.push_back(SB3dMaterial()); Materials.push_back(SB3dMaterial());
SB3dMaterial& B3dMaterial=Materials.getLast(); SB3dMaterial& B3dMaterial=Materials.getLast();
...@@ -879,8 +879,8 @@ bool CB3DMeshFileLoader::readChunkBRUS() ...@@ -879,8 +879,8 @@ bool CB3DMeshFileLoader::readChunkBRUS()
B3dMaterial.fx = os::Byteswap::byteswap(B3dMaterial.fx); B3dMaterial.fx = os::Byteswap::byteswap(B3dMaterial.fx);
#endif #endif
#ifdef _B3D_READER_DEBUG #ifdef _B3D_READER_DEBUG
os::Printer::log("Blend", core::stringc(B3dMaterial.blend).c_str()); os::Printer::log("Blend", core::stringc(B3dMaterial.blend).c_str(), ELL_DEBUG);
os::Printer::log("FX", core::stringc(B3dMaterial.fx).c_str()); os::Printer::log("FX", core::stringc(B3dMaterial.fx).c_str(), ELL_DEBUG);
#endif #endif
u32 i; u32 i;
...@@ -896,8 +896,8 @@ bool CB3DMeshFileLoader::readChunkBRUS() ...@@ -896,8 +896,8 @@ bool CB3DMeshFileLoader::readChunkBRUS()
{ {
B3dMaterial.Textures[i]=&Textures[texture_id]; B3dMaterial.Textures[i]=&Textures[texture_id];
#ifdef _B3D_READER_DEBUG #ifdef _B3D_READER_DEBUG
os::Printer::log("Layer", core::stringc(i).c_str()); os::Printer::log("Layer", core::stringc(i).c_str(), ELL_DEBUG);
os::Printer::log("using texture", Textures[texture_id].TextureName.c_str()); os::Printer::log("using texture", Textures[texture_id].TextureName.c_str(), ELL_DEBUG);
#endif #endif
} }
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment