Draft: Update Draft example file (#23284)
* Draft: Update Draft example file Fixes #23198 I have added osifont-lgpl3fe.ttf to the example folder. The ShapeString in draft_test_objects.FCStd references it using a relative path. I am not sure if including the font here is allowed though. Additionally: The example file showed up an error in view_wire.py. It is also used for fillets (which do not have a Points property). * Updated * Also use a relative path for the PAT file. * Subfolder for the PAT and TTF files. * Update CMakeLists.txt * Update CMakeLists.txt * Update CMakeLists.txt * Update CMakeLists.txt * Update CMakeLists.txt * Update CMakeLists.txt
This commit is contained in:
@@ -122,6 +122,7 @@ class ViewProviderWire(ViewProviderDraft):
|
||||
|
||||
def updateData(self, obj, prop):
|
||||
if prop == "Points" \
|
||||
and hasattr(obj, "Points") \
|
||||
and len(obj.Points) >= 2 \
|
||||
and hasattr(self, "coords1") \
|
||||
and hasattr(self, "coords2"):
|
||||
|
||||
Reference in New Issue
Block a user