+ hide input shape after creating fem object, give feedback on wrong selection for nodes set
This commit is contained in:
@@ -68,10 +68,11 @@ TaskDlgMeshShapeNetgen::~TaskDlgMeshShapeNetgen()
|
||||
|
||||
void TaskDlgMeshShapeNetgen::open()
|
||||
{
|
||||
//select->activate();
|
||||
//Edge2TaskObject->execute();
|
||||
//param->setEdgeAndClusterNbr(Edge2TaskObject->NbrOfEdges,Edge2TaskObject->NbrOfCluster);
|
||||
|
||||
// a transaction is already open at creation time of the mesh
|
||||
if (!Gui::Command::hasPendingCommand()) {
|
||||
QString msg = tr("Edit FEM mesh");
|
||||
Gui::Command::openCommand((const char*)msg.toUtf8());
|
||||
}
|
||||
}
|
||||
|
||||
void TaskDlgMeshShapeNetgen::clicked(int button)
|
||||
@@ -99,8 +100,16 @@ bool TaskDlgMeshShapeNetgen::accept()
|
||||
Gui::WaitCursor wc;
|
||||
FemMeshShapeNetgenObject->recompute();
|
||||
}
|
||||
|
||||
// hide the input object
|
||||
App::DocumentObject* obj = FemMeshShapeNetgenObject->Shape.getValue();
|
||||
if (obj) {
|
||||
Gui::Application::Instance->hideViewProvider(obj);
|
||||
}
|
||||
|
||||
//FemSetNodesObject->Label.setValue(name->name);
|
||||
Gui::Command::doCommand(Gui::Command::Gui,"Gui.activeDocument().resetEdit()");
|
||||
Gui::Command::commitCommand();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user