{
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){