From 778b6000a61cf3acd75292c909594523281388a3 Mon Sep 17 00:00:00 2001 From: vsv Date: Wed, 22 Jun 2005 11:11:30 +0000 Subject: [PATCH] Bug with creaion of actor in study restored from file --- src/VISU_I/VISU_Prs3d_i.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/VISU_I/VISU_Prs3d_i.cc b/src/VISU_I/VISU_Prs3d_i.cc index 5ae2f8ab..eefadebe 100644 --- a/src/VISU_I/VISU_Prs3d_i.cc +++ b/src/VISU_I/VISU_Prs3d_i.cc @@ -81,13 +81,13 @@ void VISU::Prs3d_i::CreateActor(VISU_Actor* theActor, const Handle(SALOME_Intera { try{ Update(); - if(myAddToStudy){ - Handle(SALOME_InteractiveObject) anIO = theIO; - if(anIO.IsNull()){ - anIO = new SALOME_InteractiveObject(mySObject->GetID(),"VISU",GetName()); - } + // if(myAddToStudy){ + Handle(SALOME_InteractiveObject) anIO = theIO; + if(anIO.IsNull() && (!mySObject->_is_nil())){ + anIO = new SALOME_InteractiveObject(mySObject->GetID(),"VISU",GetName()); theActor->setIO(anIO); } + // } theActor->SetPipeLine(GetPipeLine()); theActor->SetPrs3d(this); }catch(std::bad_alloc& ex){ -- 2.39.2