Commit 8b006b27 authored by wmayer's avatar wmayer
Browse files

Disable Placement editing for part design transformation features

parent 5ad2e662
......@@ -55,6 +55,16 @@ Transformed::Transformed() : rejected(0)
Originals.setSize(0);
}
void Transformed::onChanged(const App::Property* prop)
{
if (prop == &Originals) {
// if attached then mark it as read-only
this->Placement.StatusBits.set(2, Originals.getSize() != 0);
}
PartDesign::Feature::onChanged(prop);
}
void Transformed::positionBySupport(void)
{
Part::Feature *support = static_cast<Part::Feature*>(getSupportObject());
......
......@@ -78,6 +78,9 @@ public:
*/
const std::list<gp_Trsf> getRejectedTransformations(void) { return rejected; }
protected:
void onChanged(const App::Property* prop);
protected:
std::list<gp_Trsf> rejected;
};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment