[TD]fix subscript out of range on bad selection
This commit is contained in:
committed by
Chris Hennes
parent
384b303a85
commit
3bb37ec148
@@ -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