+ fix Placement of PartDesign/Fillet feature to the Placement of its base

git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5289 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
This commit is contained in:
logari81
2011-12-13 07:17:09 +00:00
parent 0c7de56369
commit f6ce9caf79
4 changed files with 22 additions and 6 deletions

View File

@@ -41,5 +41,11 @@ DressUp::DressUp()
ADD_PROPERTY(Base,(0));
}
void DressUp::positionByBase(void)
{
Part::Feature *base = static_cast<Part::Feature*>(Base.getValue());
if (base && base->getTypeId().isDerivedFrom(Part::Feature::getClassTypeId()))
this->Placement.setValue(base->Placement.getValue());
}
}
}