diff --git a/Filters/Core/vtkContourFilter.cxx b/Filters/Core/vtkContourFilter.cxx index ac956f92712263568ffed043eb094f1144fb0ca2..03eef1b3fa4b731de82312ca7b3bdcafccf33785 100644 --- a/Filters/Core/vtkContourFilter.cxx +++ b/Filters/Core/vtkContourFilter.cxx @@ -438,6 +438,7 @@ int vtkContourFilter::RequestData( { cgrid->SetValue(i, values[i]); } + cgrid->AddObserver(vtkCommand::ProgressEvent, this->InternalProgressCallbackCommand); cgrid->SetInputArrayToProcess(0, this->GetInputArrayInformation(0)); cgrid->UpdatePiece(info->Get(vtkStreamingDemandDrivenPipeline::UPDATE_PIECE_NUMBER()), info->Get(vtkStreamingDemandDrivenPipeline::UPDATE_NUMBER_OF_PIECES()), diff --git a/IO/Geometry/vtkOBJReader.cxx b/IO/Geometry/vtkOBJReader.cxx index f4c49d12704e43c23ad809bca6e6c7bc2f9db103..91c995e8c8c88b0339a9e06fc39a29aacde1fa97 100644 --- a/IO/Geometry/vtkOBJReader.cxx +++ b/IO/Geometry/vtkOBJReader.cxx @@ -973,7 +973,7 @@ int vtkOBJReader::RequestData(vtkInformation* vtkNotUsed(request), } } // copy the normal for this point across (if there is one) - if (n_normal_pts > 0) + if (n_normal_pts > 0 && normals->GetNumberOfTuples() > 0) { new_normals->InsertNextTuple(normals->GetTuple(normal_pts[pointi])); }