Standard_Boolean res;
SMESH_Actor *ac =
smeshGUI->FindActorByEntry(IObject->getEntry(), res,
- true);
+ false);
if (res)
{
smeshGUI->DisplayActor(ac, true);
// The actor belongs to inactive view -> create a copy and display it in the active view
if (!rwInter->isInViewer(IObject))
{
+ if(ac->GetMapper()==NULL)
+ {
+ SMESH::SMESH_Mesh_var aMesh = smeshGUI->ConvertIOinMesh(theIO, res);
+ ac=smeshGUI->ReadScript(aMesh);
+ }
SMESH_Actor *acCopy = SMESH_Actor::New();
acCopy->ShallowCopy(ac);
ac = acCopy;
if (!aMesh->_is_nil())
{
Standard_Boolean result;
- MeshActor = FindActor(aMesh, result, true);
+ MeshActor = FindActor(aMesh, result, false);
if (result)
{
SMESH::log_array_var aSeq = aMesh->GetLog(true);
getActiveStudyFrame()->getRightFrame()->getViewFrame())->
getRWInteractor();
+ ac = ReadScript(aMesh);
// The actor belongs to inactive view -> create a copy and display it in the active view
if (!rwInter->isInViewer(IO))
{
SMESH_Actor *acCopy = SMESH_Actor::New();
acCopy->ShallowCopy(ac);
-
- smeshGUI->DisplayActor(acCopy, false);
+ ac=acCopy;
}
- ac = ReadScript(aMesh);
+
if (ac != NULL)
{
#ifdef TRACE