diff --git a/vcg/simplex/vertexplus/component_ocf.h b/vcg/simplex/vertexplus/component_ocf.h index 1a4af66a..5285a17e 100644 --- a/vcg/simplex/vertexplus/component_ocf.h +++ b/vcg/simplex/vertexplus/component_ocf.h @@ -378,7 +378,10 @@ public: return (*this).Base().NV[(*this).Index()]; } template - 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 Normal3sOcf: public NormalOcf {};