From: vsv Date: Wed, 22 Jun 2005 11:11:30 +0000 (+0000) Subject: Bug with creaion of actor in study restored from file X-Git-Tag: T3_0_0_a4~17 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=778b6000a61cf3acd75292c909594523281388a3;p=modules%2Fvisu.git Bug with creaion of actor in study restored from file --- 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){