resolved 1 bug with stiffness handler

This commit is contained in:
Nico Pietroni 2012-10-17 11:47:18 +00:00
parent be7c2536f7
commit 954da5343f
1 changed files with 2 additions and 0 deletions

View File

@ -154,6 +154,8 @@ public:
bool hasStiffness = vcg::tri::HasPerFaceAttribute(mesh,std::string("Stiffness"));
if(!hasStiffness)
Handle_Stiffness=vcg::tri::Allocator<MeshType>::template AddPerFaceAttribute<float>(mesh,std::string("Stiffness"));
else
Handle_Stiffness=vcg::tri::Allocator<MeshType>::template GetPerFaceAttribute<float>(mesh,std::string("Stiffness"));
for(unsigned int i=0;i<mesh.face.size();i++)
{