mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-18 14:10:34 +05:00
fix SetPosition()
This commit is contained in:
parent
c01468d0be
commit
c6a711c175
@ -113,7 +113,9 @@ void SMDS_MeshNode::Print(ostream & OS) const
|
|||||||
|
|
||||||
void SMDS_MeshNode::SetPosition(const SMDS_PositionPtr& aPos)
|
void SMDS_MeshNode::SetPosition(const SMDS_PositionPtr& aPos)
|
||||||
{
|
{
|
||||||
if ( myPosition && myPosition != aPos )
|
if ( myPosition &&
|
||||||
|
myPosition != SMDS_SpacePosition::originSpacePosition() &&
|
||||||
|
myPosition != aPos )
|
||||||
delete myPosition;
|
delete myPosition;
|
||||||
myPosition = aPos;
|
myPosition = aPos;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user