mirror of
https://github.com/opencv/opencv.git
synced 2025-06-11 11:45:30 +08:00
viz: call "mapper->Update()" before and after SetInputData()
This commit is contained in:
parent
59ccf2c9e0
commit
6a6506b02d
@ -301,6 +301,7 @@ void cv::viz::Widget3D::applyTransform(const Affine3d &transform)
|
||||
vtkSmartPointer<vtkPolyDataMapper> mapper = vtkPolyDataMapper::SafeDownCast(actor->GetMapper());
|
||||
CV_Assert("Widget doesn't have a polydata mapper" && mapper);
|
||||
|
||||
mapper->Update(); // #10945
|
||||
VtkUtils::SetInputData(mapper, VtkUtils::TransformPolydata(mapper->GetInput(), transform));
|
||||
mapper->Update();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user