[vtkusers] vtkTransform::Identity() where it gets wrong?
Anka Kochanowska
anka at bic.mni.mcgill.ca
Tue Sep 18 11:12:16 EDT 2018
void vtkTransform::Identity()
{
this->Concatenation->Identity();
this->Modified();
// support for the legacy hack in InternalUpdate
if (this->Matrix->GetMTime() > this->MatrixUpdateMTime)
{
this->Matrix->Identity();
}
}
Modified() is called before the matrix is reset to Identity.
Should it be called at the end?
My code reacts to Modified event and promptly uses matrix that was not
yet changed.
I patch it by calling transform->Modified() after transform->Identity();
Anka
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/vtkusers/attachments/20180918/d8dbf5cc/attachment.html>
More information about the vtkusers
mailing list