|
@@ -307,8 +307,8 @@ void MeshGeometry::ReadLayerElement(const Scope& layerElement)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- FBXImporter::LogError(Formatter::format("failed to resolve vertex layer element: ")
|
|
|
|
- << type << ", index: " << typedIndex);
|
|
|
|
|
|
+ FBXImporter::LogError("failed to resolve vertex layer element: ",
|
|
|
|
+ type, ", index: ", typedIndex);
|
|
}
|
|
}
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
// ------------------------------------------------------------------------------------------------
|
|
@@ -324,8 +324,8 @@ void MeshGeometry::ReadVertexData(const std::string& type, int index, const Scop
|
|
|
|
|
|
if (type == "LayerElementUV") {
|
|
if (type == "LayerElementUV") {
|
|
if(index >= AI_MAX_NUMBER_OF_TEXTURECOORDS) {
|
|
if(index >= AI_MAX_NUMBER_OF_TEXTURECOORDS) {
|
|
- FBXImporter::LogError(Formatter::format("ignoring UV layer, maximum number of UV channels exceeded: ")
|
|
|
|
- << index << " (limit is " << AI_MAX_NUMBER_OF_TEXTURECOORDS << ")" );
|
|
|
|
|
|
+ FBXImporter::LogError("ignoring UV layer, maximum number of UV channels exceeded: ",
|
|
|
|
+ index, " (limit is ", AI_MAX_NUMBER_OF_TEXTURECOORDS, ")" );
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -402,8 +402,8 @@ void MeshGeometry::ReadVertexData(const std::string& type, int index, const Scop
|
|
}
|
|
}
|
|
else if (type == "LayerElementColor") {
|
|
else if (type == "LayerElementColor") {
|
|
if(index >= AI_MAX_NUMBER_OF_COLOR_SETS) {
|
|
if(index >= AI_MAX_NUMBER_OF_COLOR_SETS) {
|
|
- FBXImporter::LogError(Formatter::format("ignoring vertex color layer, maximum number of color sets exceeded: ")
|
|
|
|
- << index << " (limit is " << AI_MAX_NUMBER_OF_COLOR_SETS << ")" );
|
|
|
|
|
|
+ FBXImporter::LogError("ignoring vertex color layer, maximum number of color sets exceeded: ",
|
|
|
|
+ index, " (limit is ", AI_MAX_NUMBER_OF_COLOR_SETS, ")" );
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -449,8 +449,8 @@ void ResolveVertexDataArray(std::vector<T>& data_out, const Scope& source,
|
|
ParseVectorDataArray(tempData, GetRequiredElement(source, dataElementName));
|
|
ParseVectorDataArray(tempData, GetRequiredElement(source, dataElementName));
|
|
|
|
|
|
if (tempData.size() != mapping_offsets.size()) {
|
|
if (tempData.size() != mapping_offsets.size()) {
|
|
- FBXImporter::LogError(Formatter::format("length of input data unexpected for ByVertice mapping: ")
|
|
|
|
- << tempData.size() << ", expected " << mapping_offsets.size());
|
|
|
|
|
|
+ FBXImporter::LogError("length of input data unexpected for ByVertice mapping: ",
|
|
|
|
+ tempData.size(), ", expected ", mapping_offsets.size());
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -470,8 +470,8 @@ void ResolveVertexDataArray(std::vector<T>& data_out, const Scope& source,
|
|
ParseVectorDataArray(uvIndices,GetRequiredElement(source,indexDataElementName));
|
|
ParseVectorDataArray(uvIndices,GetRequiredElement(source,indexDataElementName));
|
|
|
|
|
|
if (uvIndices.size() != vertex_count) {
|
|
if (uvIndices.size() != vertex_count) {
|
|
- FBXImporter::LogError(Formatter::format("length of input data unexpected for ByVertice mapping: ")
|
|
|
|
- << uvIndices.size() << ", expected " << vertex_count);
|
|
|
|
|
|
+ FBXImporter::LogError("length of input data unexpected for ByVertice mapping: ",
|
|
|
|
+ uvIndices.size(), ", expected ", vertex_count);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -493,8 +493,8 @@ void ResolveVertexDataArray(std::vector<T>& data_out, const Scope& source,
|
|
ParseVectorDataArray(tempData, GetRequiredElement(source, dataElementName));
|
|
ParseVectorDataArray(tempData, GetRequiredElement(source, dataElementName));
|
|
|
|
|
|
if (tempData.size() != vertex_count) {
|
|
if (tempData.size() != vertex_count) {
|
|
- FBXImporter::LogError(Formatter::format("length of input data unexpected for ByPolygon mapping: ")
|
|
|
|
- << tempData.size() << ", expected " << vertex_count
|
|
|
|
|
|
+ FBXImporter::LogError("length of input data unexpected for ByPolygon mapping: ",
|
|
|
|
+ tempData.size(), ", expected ", vertex_count
|
|
);
|
|
);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
@@ -515,8 +515,8 @@ void ResolveVertexDataArray(std::vector<T>& data_out, const Scope& source,
|
|
}
|
|
}
|
|
|
|
|
|
if (uvIndices.size() != vertex_count) {
|
|
if (uvIndices.size() != vertex_count) {
|
|
- FBXImporter::LogError(Formatter::format("length of input data unexpected for ByPolygonVertex mapping: ")
|
|
|
|
- << uvIndices.size() << ", expected " << vertex_count);
|
|
|
|
|
|
+ FBXImporter::LogError("length of input data unexpected for ByPolygonVertex mapping: ",
|
|
|
|
+ uvIndices.size(), ", expected ", vertex_count);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -537,8 +537,8 @@ void ResolveVertexDataArray(std::vector<T>& data_out, const Scope& source,
|
|
}
|
|
}
|
|
}
|
|
}
|
|
else {
|
|
else {
|
|
- FBXImporter::LogError(Formatter::format("ignoring vertex data channel, access type not implemented: ")
|
|
|
|
- << MappingInformationType << "," << ReferenceInformationType);
|
|
|
|
|
|
+ FBXImporter::LogError("ignoring vertex data channel, access type not implemented: ",
|
|
|
|
+ MappingInformationType, ",", ReferenceInformationType);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -642,7 +642,7 @@ void MeshGeometry::ReadVertexDataMaterials(std::vector<int>& materials_out, cons
|
|
if (MappingInformationType == "AllSame") {
|
|
if (MappingInformationType == "AllSame") {
|
|
// easy - same material for all faces
|
|
// easy - same material for all faces
|
|
if (materials_out.empty()) {
|
|
if (materials_out.empty()) {
|
|
- FBXImporter::LogError(Formatter::format("expected material index, ignoring"));
|
|
|
|
|
|
+ FBXImporter::LogError("expected material index, ignoring");
|
|
return;
|
|
return;
|
|
} else if (materials_out.size() > 1) {
|
|
} else if (materials_out.size() > 1) {
|
|
FBXImporter::LogWarn("expected only a single material index, ignoring all except the first one");
|
|
FBXImporter::LogWarn("expected only a single material index, ignoring all except the first one");
|
|
@@ -655,14 +655,14 @@ void MeshGeometry::ReadVertexDataMaterials(std::vector<int>& materials_out, cons
|
|
materials_out.resize(face_count);
|
|
materials_out.resize(face_count);
|
|
|
|
|
|
if(materials_out.size() != face_count) {
|
|
if(materials_out.size() != face_count) {
|
|
- FBXImporter::LogError(Formatter::format("length of input data unexpected for ByPolygon mapping: ")
|
|
|
|
- << materials_out.size() << ", expected " << face_count
|
|
|
|
|
|
+ FBXImporter::LogError("length of input data unexpected for ByPolygon mapping: ",
|
|
|
|
+ materials_out.size(), ", expected ", face_count
|
|
);
|
|
);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
- FBXImporter::LogError(Formatter::format("ignoring material assignments, access type not implemented: ")
|
|
|
|
- << MappingInformationType << "," << ReferenceInformationType);
|
|
|
|
|
|
+ FBXImporter::LogError("ignoring material assignments, access type not implemented: ",
|
|
|
|
+ MappingInformationType, ",", ReferenceInformationType);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
// ------------------------------------------------------------------------------------------------
|
|
// ------------------------------------------------------------------------------------------------
|