To move calling of a virtual method from a constructor to the Init method

This commit is contained in:
apo 2006-02-09 13:24:49 +00:00
parent 50eb85fb3d
commit e6259b02da

View 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);