fix function assertActivePart by creating the part container

This commit is contained in:
wmayer
2018-01-03 15:27:35 +01:00
parent bad83d3024
commit e88848bc0b

View File

@@ -67,7 +67,7 @@ App::Part* assertActivePart () {
if ( !rv ) {
Gui::CommandManager &rcCmdMgr = Gui::Application::Instance->commandManager();
rcCmdMgr.runCommandByName("PartDesign_Part");
rcCmdMgr.runCommandByName("Std_Part");
rv = Gui::Application::Instance->activeView()->getActiveObject<App::Part *> ( PARTKEY );
if ( !rv ) {
QMessageBox::critical ( 0, QObject::tr( "Part creation failed" ),