Moved ActivePartObject etc. to PartDesignGui namespace and added extern declaration to Workbench.h as suggested by logari81
This commit is contained in:
committed by
Stefan Tröger
parent
2f658733b7
commit
10c8ba7e9b
@@ -59,11 +59,10 @@
|
||||
#include <Mod/PartDesign/App/FeatureRevolution.h>
|
||||
|
||||
#include "FeaturePickDialog.h"
|
||||
#include "Workbench.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
extern PartDesign::Body *ActivePartObject;
|
||||
|
||||
|
||||
//===========================================================================
|
||||
// Helper for Body
|
||||
@@ -71,7 +70,7 @@ extern PartDesign::Body *ActivePartObject;
|
||||
|
||||
PartDesign::Body *getBody(void)
|
||||
{
|
||||
if(!ActivePartObject){
|
||||
if(!PartDesignGui::ActivePartObject){
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("No active Body"),
|
||||
QObject::tr("In order to use PartDesign you need an active Body object in the document. "
|
||||
"Please make one active or create one. If you have a legacy document "
|
||||
@@ -79,7 +78,7 @@ PartDesign::Body *getBody(void)
|
||||
"PartDesign to put them into a Body."
|
||||
));
|
||||
}
|
||||
return ActivePartObject;
|
||||
return PartDesignGui::ActivePartObject;
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user