Skip to content

Commit

Permalink
Register BonesRepresentation
Browse files Browse the repository at this point in the history
The BonesRepresentation should be registered by the armature using it.

See Issue #13733
  • Loading branch information
vovythevov committed Nov 28, 2012
1 parent c3fbd1a commit 18d4d5d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Libs/VTK/Widgets/vtkArmatureWidget.cxx
Expand Up @@ -464,7 +464,12 @@ void vtkArmatureWidget::SetBonesRepresentation(vtkBoneRepresentation* newRep)
return;
}

if (this->BonesRepresentation)
{
this->BonesRepresentation->Delete();
}
this->BonesRepresentation = newRep;
this->BonesRepresentation->Register(this);
for (NodeIteratorType it = this->Bones->begin();
it != this->Bones->end(); ++it)
{
Expand Down

0 comments on commit 18d4d5d

Please sign in to comment.