From 81a4a5b4f544e48d29e33dff7179f476d61a17a0 Mon Sep 17 00:00:00 2001 From: ganovelli Date: Wed, 12 Nov 2008 16:20:53 +0000 Subject: [PATCH] added missing cC() access to color --- vcg/simplex/vertexplus/component.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vcg/simplex/vertexplus/component.h b/vcg/simplex/vertexplus/component.h index d2f834f4..fb619c25 100644 --- a/vcg/simplex/vertexplus/component.h +++ b/vcg/simplex/vertexplus/component.h @@ -309,7 +309,9 @@ public: typedef vcg::Color4b ColorType; ColorType &C() { static ColorType dumcolor(vcg::Color4b::White); assert(0); return dumcolor; } - template < class LeftV> + const ColorType &cC() const { static ColorType dumcolor(vcg::Color4b::White); assert(0); return dumcolor; } + +template < class LeftV> void ImportLocal(const LeftV & left ) { T::ImportLocal( left); } static bool HasColor() { return false; } static void Name(std::vector & name){T::Name(name);}