Skip to content

Commit

Permalink
Fix GetLength.
Browse files Browse the repository at this point in the history
The distance in the representation is only recomputed when the
 representation is updated. This means that if the bone's representation
exist but isn't displayed (and thus recomputed), the distance will never
be updated. That's why we simply recompute it all the time.

Issue #13621
  • Loading branch information
vovythevov committed Nov 2, 2012
1 parent 9b7896d commit cdb5c84
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions Libs/VTK/Widgets/vtkBoneWidget.cxx
Expand Up @@ -863,11 +863,6 @@ void vtkBoneWidget::SetLocalTailRest(double tail[3])
//----------------------------------------------------------------------------
double vtkBoneWidget::GetLength()
{
if (this->GetBoneRepresentation())
{
return this->GetBoneRepresentation()->GetLength();
}

double lineVect[3];
vtkMath::Subtract(this->GetCurrentWorldTail(),
this->GetCurrentWorldHead(), lineVect);
Expand Down

0 comments on commit cdb5c84

Please sign in to comment.