]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
Don't build a presentation on mesh field itself.
authorakl <akl@opencascade.com>
Fri, 21 Mar 2014 09:54:34 +0000 (13:54 +0400)
committerakl <akl@opencascade.com>
Fri, 21 Mar 2014 09:54:34 +0000 (13:54 +0400)
src/PV_SWIG/VTKWrapping/presentations.py

index 8f4a57f42df3ccd866e84ba594e27f242a61815e..64c095bd1ec2edcf3b5fcd67195bd494f743afcb 100644 (file)
@@ -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()