Dreamteck / splines

The official Dreamteck Splines for Unity repository
Apache License 2.0
22 stars 2 forks source link

Disconnect node connected to the deleted point #15

Open Kronoxis opened 3 months ago

Kronoxis commented 3 months ago

Issue

See Discord thread

When deleting points that have nodes connected to them, the editor throws errors. This happens because the DeletePoint method forgets to disconnect the node that is connected to the delete point before attempting to shift the node connections.

Fix

Call DisconnectNode on the deleted point index so that the connected node (if it exists) is disconnected before reconnecting other nodes.