Update SketchObject Placement when the Support property changes
This commit is contained in:
committed by
Stefan Tröger
parent
36c0cf393f
commit
5a0ac01640
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user