[TD]fix subscript out of range on bad selection

This commit is contained in:
wandererfan
2025-10-08 13:24:12 -04:00
committed by Chris Hennes
parent 384b303a85
commit 3bb37ec148

View File

@@ -61,9 +61,12 @@ class CommandAxoLengthDimension:
App.setActiveTransaction("Create axonometric length dimension")
vertexes = []
edges = []
if Utils.getSelEdges(2):
edges = Utils.getSelEdges(2)
vertexes = Utils.getSelVertexes(0)
if not Utils.getSelEdges(2):
return
edges = Utils.getSelEdges(2)
vertexes = Utils.getSelVertexes(0)
if len(vertexes)<2:
vertexes.append(edges[0].Vertexes[0])