PartDesign: tidy up PartDesign feature dependencies

This commit is contained in:
jrheinlaender
2012-09-09 10:05:43 +02:00
committed by logari81
parent 3743d99816
commit ded5b893a8
15 changed files with 42 additions and 29 deletions

View File

@@ -41,6 +41,14 @@ DressUp::DressUp()
ADD_PROPERTY(Base,(0));
}
short DressUp::mustExecute() const
{
if (Base.getValue() && Base.getValue()->isTouched())
return 1;
return PartDesign::Feature::mustExecute();
}
void DressUp::positionByBase(void)
{
Part::Feature *base = static_cast<Part::Feature*>(Base.getValue());