public void SelectionChanged(List<PrimitiveBox> sel) { if (sel.Count > 0) { SetActivePrimitive(sel[0]); } }