PartDesign: adding some asserts to workbench
This commit is contained in:
parent
7248888e05
commit
56af3ca44d
|
@ -370,7 +370,9 @@ void Workbench::_switchToDocument(const App::Document* doc)
|
|||
else
|
||||
{
|
||||
activeBody = Gui::Application::Instance->activeView()->getActiveObject<PartDesign::Body*>("Body");
|
||||
assert(activeBody);
|
||||
activePart = Gui::Application::Instance->activeView()->getActiveObject<App::Part*>("Part");
|
||||
assert(activePart);
|
||||
|
||||
// document change not implemented yet
|
||||
assert(activePart->getDocument() == doc);
|
||||
|
|
Loading…
Reference in New Issue
Block a user