Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Draft: update ViewProviderDraft properties
The improvements are done to `ViewProviderDraft` which propagates to the majority of the Draft objects by derived classes like `ViewProviederWire`. The initialization of the properties is moved to a method `_set_properties`. The properties `Pattern` and `PatternSize` are created only if they do not exist. This allows calling `ViewProviderDraft(obj.ViewObject)` to migrate an older object to this viewprovider but without adding duplicated properties. In particular, this is done to support the migration of the older `Fillet` object.
- Loading branch information
1 parent
de9c9a6
commit be14128
Showing
1 changed file
with
23 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters