Commit e5bb7578 authored by T.J. Corona's avatar T.J. Corona

Add paraview patch to fix multiview bug

parent 457f3ffd
Pipeline #131727 running with stage
......@@ -128,6 +128,11 @@ superbuild_add_project(paraview
${paraview_extra_cmake_args})
if (NOT ${paraview_version} VERSION_GREATER "5.6.0")
superbuild_apply_patch(paraview reuse-new-view-for-multiport-sources
"Fix multivew issue when loading sources with multiple ports")
endif()
if (__BUILDBOT_INSTALL_LOCATION)
set(paraview_paraview_dir <INSTALL_DIR>/lib/cmake/paraview-${paraview_version})
set(paraview_vtk_dir ${paraview_paraview_dir})
......
diff -Nr -U5 src_original/Qt/ApplicationComponents/pqApplyBehavior.cxx src/Qt/ApplicationComponents/pqApplyBehavior.cxx
--- src_original/Qt/ApplicationComponents/pqApplyBehavior.cxx 2019-03-07 13:05:56.000000000 -0500
+++ src/Qt/ApplicationComponents/pqApplyBehavior.cxx 2019-03-07 13:04:50.000000000 -0500
@@ -341,10 +341,17 @@
// Save the newly created representation for further fine-tuning in
// pqApplyBehavior::applied().
this->Internals->NewlyCreatedRepresentations.push_back(
pqInternals::PairType(reprProxy, preferredView));
+
+ // If the currentViewProxy is undefined, then a new view has been created for
+ // the first output port. Attempt to use it for the remaining output ports.
+ if (currentViewProxy == nullptr)
+ {
+ currentViewProxy = preferredView;
+ }
}
}
//-----------------------------------------------------------------------------
void pqApplyBehavior::hideInputIfRequired(pqPipelineFilter* filter, pqView* view)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment