From 93abca03691a6243197771d449d20846de2f7c5f Mon Sep 17 00:00:00 2001 From: Luigi Malomo Date: Tue, 10 Dec 2019 17:02:24 +0100 Subject: [PATCH] fixed import of vertex texcoord component --- vcg/simplex/vertex/component.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vcg/simplex/vertex/component.h b/vcg/simplex/vertex/component.h index 2e7ad78a..1a95aca9 100644 --- a/vcg/simplex/vertex/component.h +++ b/vcg/simplex/vertex/component.h @@ -300,7 +300,7 @@ public: TexCoordType &T() { return _t; } TexCoordType cT() const { return _t; } template < class RightValueType> - void ImportData(const RightValueType & rVert ) { if(rVert.IsTexCoordEnabled()) T() = rVert.cT(); TT::ImportData( rVert); } + void ImportData(const RightValueType & rVert ) { if(rVert.IsTexCoordEnabled()) T().Import(rVert.cT()); TT::ImportData(rVert); } static bool HasTexCoord() { return true; } static void Name(std::vector & name){name.push_back(std::string("TexCoord"));TT::Name(name);}