From 6a6506b02dcf4fd4c1198dbfe095a2fcfd55611f Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Wed, 22 Aug 2018 15:39:14 +0300 Subject: [PATCH] viz: call "mapper->Update()" before and after SetInputData() --- modules/viz/src/widget.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/viz/src/widget.cpp b/modules/viz/src/widget.cpp index ce933ed0d8..6c2789f895 100644 --- a/modules/viz/src/widget.cpp +++ b/modules/viz/src/widget.cpp @@ -301,6 +301,7 @@ void cv::viz::Widget3D::applyTransform(const Affine3d &transform) vtkSmartPointer 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(); }