//=======================================================================
void VisuGUI_Plot3DDlg::accept()
{
-/*if (!VISU::CheckActiveStudyLock()) {
- return;
- }
- if (myIsoPane->check() && myScalarPane->check()) {
- if (!isModal()) {
- VISU::Plot3D_i* prs = myIsoPane->GetPrs();
- bool isCreation = !VISU::GetActor(prs, myViewWindow);
- if (storeToPrsObject(prs)) {
- if (isCreation) { // creation
- if (myViewWindow) {
- try {
- VISU::CreateActor(prs);
- }
- catch (...) {
- reject();
- return;
- }
- myViewWindow->onFitAll();
- }
- } else { // edition
- VISU::RecreateActor(prs);
- renderViewFrame(myViewWindow);
- }
- } else {
- if (isCreation) {
- prs->RemoveFromStudy();
- //study->updateObjBrowser();
- }
- }
-}*/
+ if (myIsoPane->check() && myScalarPane->check())
QDialog::accept();
-//}
}
//=======================================================================