From 0121025d128887acd222c9c0d8d74952341c8c96 Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Thu, 5 May 2022 18:47:32 +1000 Subject: [PATCH] Fix markings for character preview (#7946) --- .../Preferences/UI/HumanoidProfileEditor.xaml.cs | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/Content.Client/Preferences/UI/HumanoidProfileEditor.xaml.cs b/Content.Client/Preferences/UI/HumanoidProfileEditor.xaml.cs index 381b9085a9..690b995b5e 100644 --- a/Content.Client/Preferences/UI/HumanoidProfileEditor.xaml.cs +++ b/Content.Client/Preferences/UI/HumanoidProfileEditor.xaml.cs @@ -562,18 +562,13 @@ namespace Content.Client.Preferences.UI private void RebuildSpriteView() { var species = Profile?.Species ?? SpeciesManager.DefaultSpecies; + var dollProto = _prototypeManager.Index(species).DollPrototype; - if (_lastSpecies != species) - { - var dollProto = _prototypeManager.Index(species).DollPrototype; - - if (_previewDummy != null) - _entMan.DeleteEntity(_previewDummy!.Value); - - _previewDummy = _entMan.SpawnEntity(dollProto, MapCoordinates.Nullspace); - _lastSpecies = species; - } + if (_previewDummy != null) + _entMan.DeleteEntity(_previewDummy!.Value); + _previewDummy = _entMan.SpawnEntity(dollProto, MapCoordinates.Nullspace); + _lastSpecies = species; var sprite = _entMan.GetComponent(_previewDummy!.Value); if (_previewSprite == null)