Filter out AddShape property in PartDesign view provider
This commit is contained in:
parent
54b5a0aad7
commit
68c9d5e0fb
|
@ -27,6 +27,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "ViewProvider.h"
|
#include "ViewProvider.h"
|
||||||
|
#include <Mod/Part/App/PropertyTopoShape.h>
|
||||||
#include <Gui/Command.h>
|
#include <Gui/Command.h>
|
||||||
//#include <Gui/Document.h>
|
//#include <Gui/Document.h>
|
||||||
|
|
||||||
|
@ -51,4 +52,11 @@ bool ViewProvider::doubleClicked(void)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ViewProvider::updateData(const App::Property* prop)
|
||||||
|
{
|
||||||
|
if (prop->getTypeId() == Part::PropertyPartShape::getClassTypeId() &&
|
||||||
|
strcmp(prop->getName(),"AddShape") == 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
inherited::updateData(prop);
|
||||||
|
}
|
||||||
|
|
|
@ -29,9 +29,9 @@
|
||||||
|
|
||||||
namespace PartDesignGui {
|
namespace PartDesignGui {
|
||||||
|
|
||||||
class PartDesignGuiExport ViewProvider : public PartGui::ViewProviderPart
|
class PartDesignGuiExport ViewProvider : public PartGui::ViewProviderPart {
|
||||||
{
|
typedef PartGui::ViewProviderPart inherited;
|
||||||
PROPERTY_HEADER(PartGui::ViewProvider);
|
PROPERTY_HEADER(PartDesignGui::ViewProvider);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
/// constructor
|
/// constructor
|
||||||
|
@ -40,7 +40,7 @@ public:
|
||||||
virtual ~ViewProvider();
|
virtual ~ViewProvider();
|
||||||
|
|
||||||
virtual bool doubleClicked(void);
|
virtual bool doubleClicked(void);
|
||||||
|
void updateData(const App::Property*);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user