Changing active object handling in PartDesign

This commit is contained in:
jriegel
2015-01-06 22:45:01 +01:00
committed by Stefan Tröger
parent 775744c1ac
commit 45f7c99c1c
24 changed files with 255 additions and 169 deletions

View File

@@ -321,6 +321,15 @@ struct PyMethodDef FreeCADGui_methods[] = {
{NULL, NULL} /* sentinel */
};
Gui::MDIView* Application::activeView(void) const
{
if (activeDocument())
return activeDocument()->getActiveView();
else
return NULL;
}
} // namespace Gui
Application::Application(bool GUIenabled)