Fix crash when loading Visject graph with a broken connection
This commit is contained in:
@@ -287,7 +287,11 @@ public:
|
||||
{
|
||||
int32 hintIndex = (int32)(intptr)box->Connections[k];
|
||||
TmpConnectionHint hint = tmpHints[hintIndex];
|
||||
box->Connections[k] = hint.Node->GetBox(hint.BoxID);
|
||||
Box* hintBox = hint.Node->TryGetBox(hint.BoxID);
|
||||
if (hintBox == nullptr)
|
||||
box->Connections.RemoveAtKeepOrder(k--);
|
||||
else
|
||||
box->Connections[k] = hintBox;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user