Corrected small error in the 3ds io wrapper

This commit is contained in:
Paolo Cignoni 2017-06-29 11:44:15 +02:00
parent 1990de4809
commit a9e78a1cf5
1 changed files with 1 additions and 1 deletions

View File

@ -362,7 +362,7 @@ namespace io {
if((mask & vcg::tri::io::Mask::IOM_FACECOLOR) | (mask & vcg::tri::io::Mask::IOM_WEDGTEXCOORD)) if((mask & vcg::tri::io::Mask::IOM_FACECOLOR) | (mask & vcg::tri::io::Mask::IOM_WEDGTEXCOORD))
{ {
int material_index = vcg::tri::io::Materials<SaveMeshType>::CreateNewMaterial(m, materials, 0, fi); int material_index = vcg::tri::io::Materials<SaveMeshType>::CreateNewMaterial(m, materials, fi);
if(material_index == (int)materials.size()) if(material_index == (int)materials.size())
{ {
Lib3dsMaterial *material = lib3ds_material_new();//creates a new material Lib3dsMaterial *material = lib3ds_material_new();//creates a new material