Updating wire sections when moving nodes in the editor

This commit is contained in:
Regalis
2016-11-10 19:44:48 +02:00
parent 8a8b9ca0fc
commit e6356a7516
@@ -58,7 +58,6 @@ namespace Barotrauma.Items.Components
public List<Vector2> Nodes;
private bool sectionsDirty;
private List<WireSection> sections;
Connection[] connections;
@@ -463,6 +462,7 @@ namespace Barotrauma.Items.Components
//if (item.Submarine != null) nodeWorldPos += item.Submarine.Position;
Nodes[(int)selectedNodeIndex] = nodeWorldPos;
UpdateSections();
MapEntity.SelectEntity(item);
}