]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
Fix pb with salome_test.py
authorvsr <vsr@opencascade.com>
Fri, 16 May 2014 09:16:18 +0000 (13:16 +0400)
committervsr <vsr@opencascade.com>
Fri, 16 May 2014 09:16:18 +0000 (13:16 +0400)
src/PV_SWIG/VTKWrapping/presentations.py

index 527728d50de0da6412f073f3c896a0b976135936..bf1fac34296b5082eb407d7262fdb17b7153067b 100644 (file)
@@ -1683,10 +1683,12 @@ def DeformedShapeAndScalarMapOnField(proxy, entity, field_name,
         else:
             on_cells.append(scalar_field_name)
 
+    nb_components = get_nb_components(proxy, entity, field_name)
+
+    # Select fields
     select_cells_with_data(proxy, on_points, on_cells)
 
     # Check vector mode
-    nb_components = get_nb_components(proxy, entity, field_name)
     check_vector_mode(vector_mode, nb_components)
 
     # Get time value