missing include import obj
This commit is contained in:
parent
c1d9732381
commit
0a17efe9a8
|
|
@ -25,6 +25,8 @@
|
||||||
#ifndef __VCGLIB_IMPORT_OBJ
|
#ifndef __VCGLIB_IMPORT_OBJ
|
||||||
#define __VCGLIB_IMPORT_OBJ
|
#define __VCGLIB_IMPORT_OBJ
|
||||||
|
|
||||||
|
#include <vcg/complex/allocate.h>
|
||||||
|
|
||||||
#include <wrap/callback.h>
|
#include <wrap/callback.h>
|
||||||
#include <wrap/io_trimesh/io_mask.h>
|
#include <wrap/io_trimesh/io_mask.h>
|
||||||
#include <wrap/io_trimesh/io_material.h>
|
#include <wrap/io_trimesh/io_material.h>
|
||||||
|
|
@ -1057,8 +1059,8 @@ public:
|
||||||
// adding texture name into textures vector (if not already present)
|
// adding texture name into textures vector (if not already present)
|
||||||
// avoid adding the same name twice
|
// avoid adding the same name twice
|
||||||
auto it = std::find(textures.begin(), textures.end(), textureName);
|
auto it = std::find(textures.begin(), textures.end(), textureName);
|
||||||
if(it==textures.end()) {
|
if(it==textures.end()) {
|
||||||
currentMaterial.index = textures.size();
|
currentMaterial.index = textures.size();
|
||||||
textures.push_back(textureName);
|
textures.push_back(textureName);
|
||||||
} else {
|
} else {
|
||||||
currentMaterial.index = std::distance(textures.begin(),it);
|
currentMaterial.index = std::distance(textures.begin(),it);
|
||||||
|
|
@ -1080,7 +1082,7 @@ public:
|
||||||
{
|
{
|
||||||
materials[i].map_Kd=textures[0];
|
materials[i].map_Kd=textures[0];
|
||||||
materials[i].index=0;
|
materials[i].index=0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue