This type of tool only works on wires
This commit is contained in:
committed by
Yorik van Havre
parent
09f134d56f
commit
0294b55bf0
@@ -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):
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user