mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-05 18:16:23 +03:00
0028463: OCAF loses an interactive object after copying
This commit is contained in:
parent
6d1e872b4d
commit
b66f375869
@ -640,6 +640,18 @@ void TPrsStd_AISPresentation::Paste (const Handle(TDF_Attribute)& theInto,
|
||||
Handle(TPrsStd_AISPresentation)::DownCast(theInto);
|
||||
|
||||
anInto->Backup();
|
||||
if (!anInto->myAIS.IsNull())
|
||||
{
|
||||
// Save displayed flag.
|
||||
Standard_Boolean displayed = anInto->IsDisplayed();
|
||||
// Erase the interactive object.
|
||||
anInto->AISErase(Standard_True);
|
||||
// Restore the displayed flag.
|
||||
if (displayed)
|
||||
anInto->SetDisplayed(displayed);
|
||||
}
|
||||
// Nullify the interactive object.
|
||||
// It will be restored on the next call to AISUpdate().
|
||||
anInto->myAIS.Nullify();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user