Commit 7a19192d authored by Will Schroeder's avatar Will Schroeder Committed by David Partyka
Browse files

Bug fixes

Change-Id: If83e6b183e619aec2275dec4e0a200dfd0f9bc4c
parent c282d157
......@@ -116,4 +116,5 @@ void vtkButtonRepresentation::PrintSelf(ostream& os, vtkIndent indent)
os << indent << "Number Of States: " << this->NumberOfStates << "\n";
os << indent << "State: " << this->State << "\n";
os << indent << "Highlight State: " << this->HighlightState << "\n";
}
......@@ -84,8 +84,10 @@ void vtkProp3DButtonRepresentation::SetState(int state)
this->Follower->SetProp3D(this->CurrentProp);
this->Picker->InitializePickList();
this->Picker->AddPickList(this->CurrentProp);
if ( this->CurrentProp )
{
this->Picker->AddPickList(this->CurrentProp);
}
}
//-------------------------------------------------------------------------
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment