Commit 3a47c467 authored by David Gobbi's avatar David Gobbi

Don't call Modified until modifications are complete

Some people use vtkModifiedEvent to to respond to changes in the
transform.  If Modified is called when the transform is in an
intermediate or inconsistent state, bad behavior results.
parent d147a82a
......@@ -89,26 +89,28 @@ void vtkTransform::PrintSelf(ostream& os, vtkIndent indent)
void vtkTransform::Identity()
{
this->Concatenation->Identity();
this->Modified();
// support for the legacy hack in InternalUpdate
if (this->Matrix->GetMTime() > this->MatrixUpdateMTime)
{
this->Matrix->Identity();
}
this->Modified();
}
//----------------------------------------------------------------------------
void vtkTransform::Inverse()
{
this->Concatenation->Inverse();
this->Modified();
// for the legacy hack in InternalUpdate
if (this->Matrix->GetMTime() > this->MatrixUpdateMTime)
{
this->Matrix->Invert();
}
this->Modified();
}
//----------------------------------------------------------------------------
......
Markdown is supported
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