[TD]fix subscript out of range on bad selection
This commit is contained in:
committed by
Chris Hennes
parent
17c8da0244
commit
46f4014647
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user