fix function assertActivePart by creating the part container
This commit is contained in:
@@ -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" ),
|
||||
|
||||
Reference in New Issue
Block a user