From d58cd4792aa83c760fe4c5f6be5789e222fb7255 Mon Sep 17 00:00:00 2001 From: eap Date: Thu, 13 Mar 2014 21:57:29 +0400 Subject: [PATCH] 22501: [CEA 1076] Impossible to mesh at its position a translated without copy shape if the shape has already been meshed Fix an introduced bug --- src/SMESH_I/SMESH_Mesh_i.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/SMESH_I/SMESH_Mesh_i.cxx b/src/SMESH_I/SMESH_Mesh_i.cxx index f2e1ca4c8..2b230a593 100644 --- a/src/SMESH_I/SMESH_Mesh_i.cxx +++ b/src/SMESH_I/SMESH_Mesh_i.cxx @@ -199,7 +199,8 @@ void SMESH_Mesh_i::SetShape( GEOM::GEOM_Object_ptr theShapeObject ) // to track changes of GEOM groups SMESH::SMESH_Mesh_var mesh = _this(); addGeomGroupData( theShapeObject, mesh ); - _mainShapeTick = theShapeObject->GetTick(); + if ( !CORBA::is_nil( theShapeObject )) + _mainShapeTick = theShapeObject->GetTick(); } //================================================================================ -- 2.30.2