Creating fileName.mtl file instead of fileName.obj.mtl
parent
ff7624f06f
commit
5757980ea5
|
@ -124,6 +124,11 @@ std::string ObjExporter :: GetMaterialLibName()
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
std::string ObjExporter :: GetMaterialLibFileName()
|
std::string ObjExporter :: GetMaterialLibFileName()
|
||||||
{
|
{
|
||||||
|
// Remove existing .obj file extention so that the final material file name will be fileName.mtl and not fileName.obj.mtl
|
||||||
|
size_t lastdot = filename.find_last_of(".");
|
||||||
|
if (lastdot != std::string::npos)
|
||||||
|
filename = filename.substr(0, lastdot);
|
||||||
|
|
||||||
return filename + MaterialExt;
|
return filename + MaterialExt;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,4 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<PropertyGroup />
|
||||||
|
</Project>
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue