Salome HOME
Merge from V5_1_main 10/12/2010
[modules/smesh.git] / src / OBJECT / SMESH_PreviewActorsCollection.cxx
index 059edd9270b3aa35a096a6ce30388fe5f6e96ea5..91e38e35418a441c2582cdb2dcce3ffce8a425f7 100644 (file)
@@ -101,7 +101,7 @@ bool SMESH_PreviewActorsCollection::Init( const TopoDS_Shape& theShape, TopAbs_S
     int index = myMapOfShapes.FindIndex( exp.Current() );
     if ( index && !myMapOfActors.contains( index ) ) { 
       // create actor if the index is present
-      if ( GEOM_Actor* anActor = createActor( exp.Current() )) {
+      if ( GEOM_Actor* anActor = createActor( exp.Current().Oriented(TopAbs_FORWARD))) {
         // Create new entry for actor
         QString aString = theEntry;
         aString += QString("_%1").arg( index ); // add index to actor entry