Arch: consider DraftText objects in the section plane for compatibility
After the reorganization of the Draft Workbench, the `'DraftText'` objects are now of Proxy.Type `'Text'`. In the `DraftAnnotation` class the `__setstate__` method was defined to automatically migrate the Type. The `Arch SectionPlane` only handles `'Text'` objects. If for some reason there is still an old `'DraftText'` object which has not been migrated to the new Type, it won't be found. This is corrected by adding `'DraftText'` to the list of objects to process.
This commit is contained in:
@@ -368,7 +368,7 @@ def getSVG(source,
|
||||
for o in objs:
|
||||
if Draft.getType(o) == "Space":
|
||||
spaces.append(o)
|
||||
elif Draft.getType(o) in ["AngularDimension","LinearDimension","Annotation","Label","Text"]:
|
||||
elif Draft.getType(o) in ["AngularDimension","LinearDimension","Annotation","Label","Text", "DraftText"]:
|
||||
if isOriented(o,cutplane):
|
||||
drafts.append(o)
|
||||
elif o.isDerivedFrom("Part::Part2DObject"):
|
||||
|
||||
Reference in New Issue
Block a user