This type of tool only works on wires

This commit is contained in:
Dion Moult
2019-01-30 20:24:30 +11:00
committed by Yorik van Havre
parent 09f134d56f
commit 0294b55bf0
2 changed files with 2 additions and 1 deletions

View File

@@ -1376,6 +1376,8 @@ def joinTwoWires(wire1, wire2):
return True
def split(wire, newPoint, edgeIndex):
if getType(wire) != "Wire":
return
wire1Points = []
wire2Points = []
for index, point in enumerate(wire.Points):

View File

@@ -3262,7 +3262,6 @@ class Split(Modifier):
getPoint(self, arg)
redraw3DView()
elif arg["Type"] == "SoMouseButtonEvent" and arg["State"] == "DOWN" and arg["Button"] == "BUTTON1":
print('clicky!')
self.point, ctrlPoint, info = getPoint(self, arg)
if "Edge" in info["Component"]:
return self.proceed(info)