From e4b13f2ef0148d1704d1af194c738701652584b5 Mon Sep 17 00:00:00 2001 From: ozantonkal Date: Tue, 27 Aug 2013 20:09:54 +0200 Subject: [PATCH] update reader after setting file name --- 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 485e35ed74..ba21b67855 100644 --- a/modules/viz/src/widget.cpp +++ b/modules/viz/src/widget.cpp @@ -17,6 +17,7 @@ cv::viz::Widget cv::viz::Widget::fromPlyFile(const String &file_name) { vtkSmartPointer reader = vtkSmartPointer::New (); reader->SetFileName (file_name.c_str ()); + reader->Update(); vtkSmartPointer data = reader->GetOutput(); CV_Assert(data);