Skip to content

Commit

Permalink
PartDesign: disable SupportTransform on legacy dressup feature
Browse files Browse the repository at this point in the history
Because in order to SupportTransform, dressup must calculate its
AddSubShape, which is empty for existing legacy dressup feature.
  • Loading branch information
realthunder authored and wwmayer committed Mar 20, 2020
1 parent 974267b commit 4a26bd0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Mod/PartDesign/App/FeatureDressUp.cpp
Expand Up @@ -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;
Expand All @@ -63,6 +63,11 @@ short DressUp::mustExecute() const
return PartDesign::Feature::mustExecute();
}

void DressUp::setupObject()
{
SupportTransform.setValue(true);
Feature::setupObject();
}

void DressUp::positionByBaseFeature(void)
{
Expand Down
1 change: 1 addition & 0 deletions src/Mod/PartDesign/App/FeatureDressUp.h
Expand Up @@ -62,6 +62,7 @@ class PartDesignExport DressUp : public PartDesign::FeatureAddSub

protected:
virtual void onChanged(const App::Property* prop);
virtual void setupObject();
};

} //namespace PartDesign
Expand Down

0 comments on commit 4a26bd0

Please sign in to comment.