PartDesign: move common properties to FeatureSketchBased and add some source documentation
This commit is contained in:
@@ -75,11 +75,15 @@ PROPERTY_SOURCE(PartDesign::SketchBased, PartDesign::Feature)
|
||||
SketchBased::SketchBased()
|
||||
{
|
||||
ADD_PROPERTY(Sketch,(0));
|
||||
ADD_PROPERTY_TYPE(Midplane,(0),"SketchBased", App::Prop_None, "Extrude symmetric to sketch face");
|
||||
ADD_PROPERTY_TYPE(Reversed, (0),"SketchBased", App::Prop_None, "Reverse extrusion direction");
|
||||
}
|
||||
|
||||
short SketchBased::mustExecute() const
|
||||
{
|
||||
if (Sketch.isTouched())
|
||||
if (Sketch.isTouched() ||
|
||||
Midplane.isTouched() ||
|
||||
Reversed.isTouched())
|
||||
return 1;
|
||||
return 0; // PartDesign::Feature::mustExecute();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user