public void SyncWithModel() { var childControlVertexProviders = children .Select(child => child.controlVertexProvider) .ToList(); controlVertexProvider.SyncWithModel(model, childControlVertexProviders); }
public void SyncWithModel() { SyncMaterialSet(); if (model.Shape != currentShape) { var newShapeNormals = shapeNormalsLoader.Load(definition.Directory, model.Shape); shapeNormals?.Dispose(); shapeNormals = newShapeNormals; currentShape = model.Shape; } var childControlVertexProviders = children .Select(child => child.controlVertexProvider) .ToList(); controlVertexProvider.SyncWithModel(model, childControlVertexProviders); }