Drop unused boxes in Visject serialization

This commit is contained in:
stefnotch
2021-02-23 11:33:51 +01:00
parent 2498d1d4f2
commit 81fa876940

View File

@@ -103,7 +103,7 @@ namespace FlaxEditor.Surface
{
for (int j = 0; j < node.Elements.Count; j++)
{
if (node.Elements[j] is Box box)
if (node.Elements[j] is Box box && box.Connections.Count > 0)
{
var dataModelBox = new DataModelBox
{