Skip to content

Commit

Permalink
BUG: Make sure ProcessMRMLEvents is called all the way to the base no…
Browse files Browse the repository at this point in the history
…de class

The transformable node did not call the ProcessMRMLEvents function from its superclass, so the storable node and base MRML node classes did not have a chance to handle some events.
  • Loading branch information
cpinter committed Aug 8, 2022
1 parent 866fe39 commit abe9761
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Libs/MRML/Core/vtkMRMLTransformableNode.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,10 @@ bool vtkMRMLTransformableNode::SetAndObserveTransformNodeID(const char *transfor
//---------------------------------------------------------------------------
void vtkMRMLTransformableNode::ProcessMRMLEvents ( vtkObject *caller,
unsigned long event,
void *vtkNotUsed(callData) )
void *callData )
{
Superclass::ProcessMRMLEvents(caller, event, callData);

// as retrieving the parent transform node can be costly (browse the scene)
// do some checks here to prevent retrieving the node for nothing.
if (caller == nullptr ||
Expand Down

0 comments on commit abe9761

Please sign in to comment.