corrected funtion Normal::ImportLocal

This commit is contained in:
Nico Pietroni 2009-10-14 14:25:59 +00:00
parent ea6553f1d5
commit c57e10951c
1 changed files with 5 additions and 1 deletions

View File

@ -185,7 +185,11 @@ public:
NormalType &N() { return _norm; } NormalType &N() { return _norm; }
const NormalType &cN() const { return _norm; } const NormalType &cN() const { return _norm; }
template < class LeftV> 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 HasNormal() { return true; }
static bool HasNormalOcf() { return false; } static bool HasNormalOcf() { return false; }
static void Name(std::vector<std::string> & name){name.push_back(std::string("Normal"));T::Name(name);} static void Name(std::vector<std::string> & name){name.push_back(std::string("Normal"));T::Name(name);}