Update SketchObject Placement when the Support property changes

This commit is contained in:
jrheinlaender
2016-04-12 18:11:55 +02:00
committed by Stefan Tröger
parent 5c18e947e6
commit 0ab6a77442
2 changed files with 11 additions and 0 deletions
+8
View File
@@ -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 {