From dd3f6ee54250b5286421d707b3e5cd84c979b397 Mon Sep 17 00:00:00 2001 From: mpa Date: Tue, 17 Mar 2015 10:32:36 +0300 Subject: [PATCH] 0022777: [CEA 1291] Display the name of an object in the 3D View (fixed problem for SMESH module) --- src/OBJECT/GEOM_Actor.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/OBJECT/GEOM_Actor.cxx b/src/OBJECT/GEOM_Actor.cxx index e7b77aef0..09eb87754 100644 --- a/src/OBJECT/GEOM_Actor.cxx +++ b/src/OBJECT/GEOM_Actor.cxx @@ -446,6 +446,9 @@ void GEOM_Actor ::SetShapeName(const TopoDS_Shape& theShape) { + if( !getIO() ) + return; + gp_Ax3 anAx3 = GEOMUtils::GetPosition(theShape); double center[3] = { anAx3.Location().X(), anAx3.Location().Y(), -- 2.39.2