added if(vp<oldBase || vp>oldEnd) return; test in PointerUpdater::Update function, so that entities that doesn't need to be updated has no problems

This commit is contained in:
Nico Pietroni 2010-10-27 17:46:46 +00:00
parent 0bff4edee2
commit 969f556691
1 changed files with 2 additions and 1 deletions

View File

@ -127,7 +127,8 @@ namespace vcg {
void Clear(){newBase=oldBase=newEnd=oldEnd=0;};
void Update(SimplexPointerType &vp)
{
// if(vp>=newBase && vp<newEnd) return;
//if(vp>=newBase && vp<newEnd) return;
if(vp<oldBase || vp>oldEnd) return;
assert(vp>=oldBase);
assert(vp<oldEnd);
vp=newBase+(vp-oldBase);