Exemple #1
0
    private void SyncMaterialSet()
    {
        string materialSetName = model.MaterialSet.Label;
        var    newRenderer     = figureRendererLoader.Load(definition.Directory, materialSetName);

        renderer?.Dispose();
        renderer = newRenderer;
    }
    private void SyncMaterialSet()
    {
        if (model.MaterialSetAndVariant != currentMaterialSetAndVariant)
        {
            var newRenderer = figureRendererLoader.Load(definition.Directory, model.MaterialSetAndVariant);
            renderer?.Dispose();

            renderer = newRenderer;
            currentMaterialSetAndVariant = model.MaterialSetAndVariant;
        }
    }