fix [-Wignored-qualifiers]
This commit is contained in:
parent
ba1a1b64f6
commit
9ec94f25aa
|
|
@ -77,7 +77,7 @@ void ExportData::BeginBrush( Brush& b ){
|
||||||
current = &groups.back();
|
current = &groups.back();
|
||||||
|
|
||||||
StringOutputStream str( 256 );
|
StringOutputStream str( 256 );
|
||||||
str << "Brush" << (const unsigned int)groups.size();
|
str << "Brush" << (unsigned int)groups.size();
|
||||||
current->name = str.c_str();
|
current->name = str.c_str();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -312,7 +312,7 @@ bool ExportDataAsWavefront::WriteToFile( const std::string& path, collapsemode m
|
||||||
}
|
}
|
||||||
|
|
||||||
outMtl << "# Wavefront material file exported with NetRadiants brushexport plugin.\n";
|
outMtl << "# Wavefront material file exported with NetRadiants brushexport plugin.\n";
|
||||||
outMtl << "# Material Count: " << (const Unsigned)materials.size() << "\n\n";
|
outMtl << "# Material Count: " << (Unsigned)materials.size() << "\n\n";
|
||||||
for ( const auto& material : materials )
|
for ( const auto& material : materials )
|
||||||
{
|
{
|
||||||
const std::string& str = material.first;
|
const std::string& str = material.first;
|
||||||
|
|
|
||||||
|
|
@ -136,21 +136,21 @@ void GetAllShaders(){
|
||||||
|
|
||||||
void GetArchiveList(){
|
void GetArchiveList(){
|
||||||
GlobalFileSystem().forEachArchive( LoadArchiveFileCaller() );
|
GlobalFileSystem().forEachArchive( LoadArchiveFileCaller() );
|
||||||
globalOutputStream() << "Shaderplug: " << (const Unsigned)Shaderplug::archives.size() << " archives found.\n";
|
globalOutputStream() << "Shaderplug: " << (Unsigned)Shaderplug::archives.size() << " archives found.\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
void CreateTagFile(){
|
void CreateTagFile(){
|
||||||
const char* shader_type = GlobalRadiant().getGameDescriptionKeyValue( "shaders" );
|
const char* shader_type = GlobalRadiant().getGameDescriptionKeyValue( "shaders" );
|
||||||
|
|
||||||
GetAllShaders();
|
GetAllShaders();
|
||||||
globalOutputStream() << "Shaderplug: " << (const Unsigned)shaders.size() << " shaders found.\n";
|
globalOutputStream() << "Shaderplug: " << (Unsigned)shaders.size() << " shaders found.\n";
|
||||||
|
|
||||||
if ( string_equal( shader_type, "quake3" ) ) {
|
if ( string_equal( shader_type, "quake3" ) ) {
|
||||||
GetTextures( "jpg" );
|
GetTextures( "jpg" );
|
||||||
GetTextures( "tga" );
|
GetTextures( "tga" );
|
||||||
GetTextures( "png" );
|
GetTextures( "png" );
|
||||||
|
|
||||||
globalOutputStream() << "Shaderplug: " << (const Unsigned)textures.size() << " textures found.\n";
|
globalOutputStream() << "Shaderplug: " << (Unsigned)textures.size() << " textures found.\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( shaders.size() || textures.size() != 0 ) {
|
if ( shaders.size() || textures.size() != 0 ) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user