From 96e89673ecc013ac5c5ef8badd0112de79d9dcf0 Mon Sep 17 00:00:00 2001 From: ganovelli Date: Thu, 7 Aug 2008 16:16:06 +0000 Subject: [PATCH] corrected bug in ImportLocal of N() --- vcg/simplex/vertexplus/component_ocf.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 {};