From fe15fa9d02784e79dd0df708218cb47e8e87d50b Mon Sep 17 00:00:00 2001 From: vsr Date: Fri, 16 May 2014 13:16:18 +0400 Subject: [PATCH] Fix pb with salome_test.py --- src/PV_SWIG/VTKWrapping/presentations.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/PV_SWIG/VTKWrapping/presentations.py b/src/PV_SWIG/VTKWrapping/presentations.py index 527728d5..bf1fac34 100644 --- a/src/PV_SWIG/VTKWrapping/presentations.py +++ b/src/PV_SWIG/VTKWrapping/presentations.py @@ -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 -- 2.39.2