mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-03-13 00:44:33 +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->PickableOff();
|
||||||
myHighlitableActor->SetRepresentation(SMESH_DeviceActor::eWireframe);
|
myHighlitableActor->SetRepresentation(SMESH_DeviceActor::eWireframe);
|
||||||
|
|
||||||
SetShrinkFactor( SMESH::GetFloat( "SMESH:shrink_coeff", 0.75 ) );
|
|
||||||
|
|
||||||
myName = "";
|
myName = "";
|
||||||
myIO = NULL;
|
myIO = NULL;
|
||||||
|
|
||||||
@ -755,6 +753,8 @@ bool SMESH_ActorDef::Init(TVisualObjPtr theVisualObj,
|
|||||||
if( !mgr )
|
if( !mgr )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
SetShrinkFactor( SMESH::GetFloat( "SMESH:shrink_coeff", 0.75 ) );
|
||||||
|
|
||||||
int aMode = mgr->integerValue( "SMESH", "display_mode" );
|
int aMode = mgr->integerValue( "SMESH", "display_mode" );
|
||||||
SetRepresentation(-1);
|
SetRepresentation(-1);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user