From c57e10951cdbca5963af05d5a755ff6d38d8b342 Mon Sep 17 00:00:00 2001 From: nicopietroni Date: Wed, 14 Oct 2009 14:25:59 +0000 Subject: [PATCH] corrected funtion Normal::ImportLocal --- vcg/simplex/vertex/component.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vcg/simplex/vertex/component.h b/vcg/simplex/vertex/component.h index 04e271a4..33acf92f 100644 --- a/vcg/simplex/vertex/component.h +++ b/vcg/simplex/vertex/component.h @@ -185,7 +185,11 @@ public: NormalType &N() { return _norm; } const NormalType &cN() const { return _norm; } template < class LeftV> - void ImportLocal(const LeftV & left ) { if(LeftV::HasNormal()) N() = left.cN(); T::ImportLocal( left); } + void ImportLocal(const LeftV & left ){ + if(LeftV::HasNormal()) + N().Import(left.cN()); + T::ImportLocal( left); + } static bool HasNormal() { return true; } static bool HasNormalOcf() { return false; } static void Name(std::vector & name){name.push_back(std::string("Normal"));T::Name(name);}