PartDesign: fix Polar and Mirror accepting Datum

This commit is contained in:
Sergo
2016-09-21 01:40:36 -04:00
committed by Yorik van Havre
parent c216da56d5
commit 1a688a6375
3 changed files with 8 additions and 3 deletions

View File

@@ -190,7 +190,9 @@ void TaskMirroredParameters::onSelectionChanged(const Gui::SelectionChanges& msg
if(!selObj)
return;
// Note: ReferenceSelection has already checked the selection for validity
if ( selectionMode == reference || selObj->isDerivedFrom ( App::Plane::getClassTypeId () ) ) {
if ( selectionMode == reference ||
selObj->isDerivedFrom ( App::Plane::getClassTypeId () ) ||
selObj->isDerivedFrom(PartDesign::Plane::getClassTypeId())) {
pcMirrored->MirrorPlane.setValue(selObj, mirrorPlanes);
recomputeFeature();