From 3a5b6ed2f3ab1da29609ae77453fbfd26547ebce Mon Sep 17 00:00:00 2001 From: ganovelli Date: Fri, 24 Oct 2008 09:50:55 +0000 Subject: [PATCH] added missing checks in ImportLocal --- vcg/simplex/faceplus/component_ocf.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vcg/simplex/faceplus/component_ocf.h b/vcg/simplex/faceplus/component_ocf.h index 467f8d48..d0d2b553 100644 --- a/vcg/simplex/faceplus/component_ocf.h +++ b/vcg/simplex/faceplus/component_ocf.h @@ -415,7 +415,7 @@ public: template void ImportLocal(const LeftF & leftF){ - if(leftF.Base().VFAdjacencyEnabled){ + if(leftF.Base().VFAdjacencyEnabled && this->Base().VFAdjacencyEnabled){ VFp(0) = NULL; VFp(1) = NULL; VFp(2) = NULL; VFi(0) = -1; VFi(1) = -1; VFi(2) = -1; } @@ -458,7 +458,7 @@ public: template void ImportLocal(const LeftF & leftF){ - if(leftF.Base().FFAdjacencyEnabled) { + if(leftF.Base().FFAdjacencyEnabled && this->Base().FFAdjacencyEnabled) { FFp(0) = NULL; FFp(1) = NULL; FFp(2) = NULL; FFi(0) = -1; FFi(1) = -1; FFi(2) = -1; }