Skip to content

Commit

Permalink
Merge pull request LeGoffLoic#9 from glm-ypinczon/fix_deletionOfSocke…
Browse files Browse the repository at this point in the history
…tsWithMultipleConnections

Fix node deletion not removing all connections if multiple conneciton…
  • Loading branch information
glm-ypinczon authored Aug 23, 2017
2 parents 890196b + 09da9b6 commit d21e153
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions nodz_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1373,13 +1373,13 @@ def _remove(self):

# Remove all sockets connections.
for socket in self.sockets.values():
for connection in socket.connections:
connection._remove()
while len(socket.connections)>0:
socket.connections[0]._remove()

# Remove all plugs connections.
for plug in self.plugs.values():
for connection in plug.connections:
connection._remove()
while len(plug.connections)>0:
plug.connections[0]._remove()

# Remove node.
scene = self.scene()
Expand Down

0 comments on commit d21e153

Please sign in to comment.