]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
To move calling of a virtual method from a constructor to the Init method
authorapo <apo@opencascade.com>
Thu, 9 Feb 2006 13:24:49 +0000 (13:24 +0000)
committerapo <apo@opencascade.com>
Thu, 9 Feb 2006 13:24:49 +0000 (13:24 +0000)
src/OBJECT/SMESH_Actor.cxx

index 5b21ac70adb8da25319fd6ec0baa8a7e9c455991..5f17220f048c12f8b46e5083c3b8834cb3167723 100644 (file)
@@ -263,8 +263,6 @@ SMESH_ActorDef::SMESH_ActorDef()
   myHighlitableActor->PickableOff();
   myHighlitableActor->SetRepresentation(SMESH_DeviceActor::eWireframe);
 
-  SetShrinkFactor( SMESH::GetFloat( "SMESH:shrink_coeff", 0.75 ) );
-
   myName = "";
   myIO = NULL;
 
@@ -755,6 +753,8 @@ bool SMESH_ActorDef::Init(TVisualObjPtr theVisualObj,
   if( !mgr )
     return false;
 
+  SetShrinkFactor( SMESH::GetFloat( "SMESH:shrink_coeff", 0.75 ) );
+
   int aMode = mgr->integerValue( "SMESH", "display_mode" );
   SetRepresentation(-1);