0022777: [CEA 1291] Display the name of an object in the 3D View (fixed problem for SMESH module)

This commit is contained in:
mpa 2015-03-17 10:32:36 +03:00
parent 1344a93905
commit dd3f6ee542

View File

@ -446,6 +446,9 @@ void
GEOM_Actor GEOM_Actor
::SetShapeName(const TopoDS_Shape& theShape) ::SetShapeName(const TopoDS_Shape& theShape)
{ {
if( !getIO() )
return;
gp_Ax3 anAx3 = GEOMUtils::GetPosition(theShape); gp_Ax3 anAx3 = GEOMUtils::GetPosition(theShape);
double center[3] = { anAx3.Location().X(), double center[3] = { anAx3.Location().X(),
anAx3.Location().Y(), anAx3.Location().Y(),