Skip to content

Commit

Permalink
Fixed stupid bug where the texture panel was not rendering correctly …
Browse files Browse the repository at this point in the history
…in the Avalonia UI.
  • Loading branch information
MeltyPlayer committed Nov 28, 2024
1 parent a3a106e commit bf1b6d5
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@ public class MaterialTexturesPanelViewModel : ViewModelBase {

public TextureListViewModel TextureList {
get => this.textureListViewModel_;
private set
=> this.RaiseAndSetIfChanged(ref this.textureListViewModel_, value);
private set {
this.RaiseAndSetIfChanged(ref this.textureListViewModel_, value);
this.SelectedTexture = value.TextureViewModels.FirstOrDefault();
}
}

public TextureViewModel? SelectedTexture {
Expand Down

0 comments on commit bf1b6d5

Please sign in to comment.