Update SketchObject Placement when the Support property changes
This commit is contained in:
parent
5c18e947e6
commit
0ab6a77442
|
@ -367,6 +367,14 @@ void Part2DObject::acceptGeometry()
|
|||
// implemented in sub-classes
|
||||
}
|
||||
|
||||
void Part2DObject::onChanged(const App::Property* prop)
|
||||
{
|
||||
// Update the Placement if the Support changes
|
||||
if ((prop == &Support) && (Support.getValue() != NULL))
|
||||
positionBySupport();
|
||||
Part::Feature::onChanged(prop);
|
||||
}
|
||||
|
||||
// Python Drawing feature ---------------------------------------------------------
|
||||
|
||||
namespace App {
|
||||
|
|
|
@ -107,6 +107,9 @@ public:
|
|||
}
|
||||
//@}
|
||||
|
||||
protected:
|
||||
/// get called by the container when a property has changed
|
||||
virtual void onChanged(const App::Property* /*prop*/);
|
||||
};
|
||||
|
||||
typedef App::FeaturePythonT<Part2DObject> Part2DObjectPython;
|
||||
|
|
Loading…
Reference in New Issue
Block a user