From 57ee5c80289b718e5ff2302f834c5ca8f4c0ee61 Mon Sep 17 00:00:00 2001 From: akl Date: Fri, 21 Mar 2014 13:54:34 +0400 Subject: [PATCH] Don't build a presentation on mesh field itself. --- src/PV_SWIG/VTKWrapping/presentations.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/PV_SWIG/VTKWrapping/presentations.py b/src/PV_SWIG/VTKWrapping/presentations.py index 8f4a57f4..64c095bd 100644 --- a/src/PV_SWIG/VTKWrapping/presentations.py +++ b/src/PV_SWIG/VTKWrapping/presentations.py @@ -2553,15 +2553,18 @@ def CreatePrsForProxy(proxy, view, prs_types, picture_dir, picture_ext): # Presentations on fields for field in fields_info: - # Restore fields selection state + field_name = get_field_short_name(field) + # Ignore mesh presentation + if field_name == get_field_mesh_name(field): + continue + field_entity = get_field_entity(field) + # Clear fields selection state proxy.AllArrays = [] - proxy.UpdatePipelineInformation() + proxy.UpdatePipeline() # Select only the current field: # necessary for getting the right timestamps - field_name = get_field_short_name(field) - field_entity = get_field_entity(field) proxy.AllArrays = field - proxy.UpdatePipelineInformation() + proxy.UpdatePipeline() # Get timestamps entity_data_info = proxy.GetCellDataInformation() -- 2.39.2