Skip to content

Commit

Permalink
Draft: Draft_Dimension_linked_geometry_fix
Browse files Browse the repository at this point in the history
Linked geometry was not handled if the selected edge started or ended at vertex zero.
  • Loading branch information
Roy-043 authored and yorikvanhavre committed Oct 29, 2020
1 parent cd8af36 commit aebf568
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mod/Draft/draftguitools/gui_dimensions.py
Expand Up @@ -168,7 +168,7 @@ def set_selection(self):
if v.Point == edge.Vertexes[1].Point:
v2 = i

if v1 and v2:
if v1 != None and v2 != None: # note that v1 or v2 can be zero
self.link = [sel_object.Object, v1, v2]
elif DraftGeomUtils.geomType(edge) == "Circle":
self.node.extend([edge.Curve.Center,
Expand Down

0 comments on commit aebf568

Please sign in to comment.