if (!myPipeCopy)
myPipeCopy = VISU_Plot3DPL::New();
if (myPrs) {
+ myPipeCopy->SetIDMapper(myPrs->GetPL()->GetIDMapper());
myPipeCopy->ShallowCopy(myPrs->GetPL());
storeToPrsObject(myPrs);
}
void VisuGUI_Plot3DDlg::accept()
{
if (myIsoPane->check() && myScalarPane->check())
- QDialog::accept();
+ {
+ myScalarPane->deletePreview();
+ QDialog::accept();
+ }
}
//=======================================================================
void VisuGUI_Plot3DDlg::reject()
{
myIsoPane->check(); // hide preview
-
-/*if (!isModal() && myIsoPane->GetPrs() &&
- !VISU::GetActor(myIsoPane->GetPrs(), myViewWindow)) {
- _PTR(Study) aStudy = VISU::GetCStudy(VISU::GetAppStudy(myModule));
- if (!aStudy->GetProperties()->IsLocked()) {
- myIsoPane->GetPrs()->RemoveFromStudy();
- myIsoPane->GetStudyFrame()->getStudy()->updateObjBrowser();
- }
-}*/
+ myScalarPane->deletePreview();
+
QDialog::reject();
}