LogAux warn
parent
5cd3bdd5c2
commit
7abfd134b6
|
@ -516,7 +516,7 @@ void BlenderImporter::ResolveTexture(aiMaterial *out, const Material *mat, const
|
||||||
case Tex::Type_POINTDENSITY:
|
case Tex::Type_POINTDENSITY:
|
||||||
case Tex::Type_VOXELDATA:
|
case Tex::Type_VOXELDATA:
|
||||||
|
|
||||||
LogWarn(std::string("Encountered a texture with an unsupported type: ") + dispnam);
|
LogWarn("Encountered a texture with an unsupported type: ", dispnam);
|
||||||
AddSentinelTexture(out, mat, tex, conv_data);
|
AddSentinelTexture(out, mat, tex, conv_data);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -752,7 +752,7 @@ void BlenderImporter::CheckActualType(const ElemBase *dt, const char *check) {
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
void BlenderImporter::NotSupportedObjectType(const Object *obj, const char *type) {
|
void BlenderImporter::NotSupportedObjectType(const Object *obj, const char *type) {
|
||||||
LogWarn((format(), "Object `", obj->id.name, "` - type is unsupported: `", type, "`, skipping"));
|
LogWarn("Object `", obj->id.name, "` - type is unsupported: `", type, "`, skipping");
|
||||||
}
|
}
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
|
|
|
@ -509,8 +509,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::LogWarn(Formatter::format("trimming length of input array for ByPolygonVertex mapping: ")
|
FBXImporter::LogWarn("trimming length of input array for ByPolygonVertex mapping: ",
|
||||||
<< uvIndices.size() << ", expected " << vertex_count);
|
uvIndices.size(), ", expected ", vertex_count);
|
||||||
uvIndices.resize(vertex_count);
|
uvIndices.resize(vertex_count);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -645,7 +645,7 @@ void MeshGeometry::ReadVertexDataMaterials(std::vector<int>& materials_out, cons
|
||||||
FBXImporter::LogError(Formatter::format("expected material index, ignoring"));
|
FBXImporter::LogError(Formatter::format("expected material index, ignoring"));
|
||||||
return;
|
return;
|
||||||
} else if (materials_out.size() > 1) {
|
} else if (materials_out.size() > 1) {
|
||||||
FBXImporter::LogWarn(Formatter::format("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");
|
||||||
materials_out.clear();
|
materials_out.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue