mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-03-12 19:14:34 +05:00
To move calling of a virtual method from a constructor to the Init method
This commit is contained in:
parent
50eb85fb3d
commit
e6259b02da
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user