internal override void SetChildren(List <CSGTreeNode> childNodes) { if (!Node.Valid) { Debug.LogWarning("SetChildren called on a ChiselModel that isn't properly initialized", this); return; } if (!Node.SetChildren(childNodes.ToArray())) { Debug.LogError("Failed to assign list of children to tree node"); } }
internal override void SetChildren(List <CSGTreeNode> childNodes) { if (!Node.Valid) { Debug.LogWarning($"SetChildren called on a {nameof(ChiselModel)} that isn't properly initialized", this); return; } if (childNodes.Count == 0) { return; } if (!Node.SetChildren(childNodes)) { Debug.LogError("Failed to assign list of children to tree node"); } }