From: akl Date: Fri, 21 Mar 2014 09:54:34 +0000 (+0400) Subject: Don't build a presentation on mesh field itself. X-Git-Tag: V7_4_0a1~2^2~1^2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=57ee5c80289b718e5ff2302f834c5ca8f4c0ee61;p=modules%2Fparavis.git Don't build a presentation on mesh field itself. --- 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()