corrected bug in ImportLocal of N()

This commit is contained in:
ganovelli 2008-08-07 16:16:06 +00:00
parent b284013486
commit 96e89673ec
1 changed files with 4 additions and 1 deletions

View File

@ -378,7 +378,10 @@ public:
return (*this).Base().NV[(*this).Index()]; } return (*this).Base().NV[(*this).Index()]; }
template <class LeftV> template <class LeftV>
void ImportLocal(const LeftV & leftV){ N() = leftV.cN(); T::ImporLocal(leftV);} void ImportLocal(const LeftV & leftV){
if((*this).Base().NormalEnabled && leftV.Base().NormalEnabled ) // copy the data only if they are enabled in both vertices
N().Import(leftV.cN());
T::ImporLocal(leftV);}
}; };
template <class T> class Normal3sOcf: public NormalOcf<vcg::Point3s, T> {}; template <class T> class Normal3sOcf: public NormalOcf<vcg::Point3s, T> {};