PartDesign: disable SupportTransform on legacy dressup feature
Because in order to SupportTransform, dressup must calculate its AddSubShape, which is empty for existing legacy dressup feature.
This commit is contained in:
@@ -50,7 +50,7 @@ DressUp::DressUp()
|
||||
ADD_PROPERTY(Base,(0));
|
||||
Placement.setStatus(App::Property::ReadOnly, true);
|
||||
|
||||
ADD_PROPERTY_TYPE(SupportTransform,(true),"Base", App::Prop_None,
|
||||
ADD_PROPERTY_TYPE(SupportTransform,(false),"Base", App::Prop_None,
|
||||
"Enable support for transformed patterns");
|
||||
|
||||
addSubType = Additive;
|
||||
@@ -63,6 +63,11 @@ short DressUp::mustExecute() const
|
||||
return PartDesign::Feature::mustExecute();
|
||||
}
|
||||
|
||||
void DressUp::setupObject()
|
||||
{
|
||||
SupportTransform.setValue(true);
|
||||
Feature::setupObject();
|
||||
}
|
||||
|
||||
void DressUp::positionByBaseFeature(void)
|
||||
{
|
||||
|
||||
@@ -62,6 +62,7 @@ public:
|
||||
|
||||
protected:
|
||||
virtual void onChanged(const App::Property* prop);
|
||||
virtual void setupObject();
|
||||
};
|
||||
|
||||
} //namespace PartDesign
|
||||
|
||||
Reference in New Issue
Block a user