Fix markings for character preview (#7946)

This commit is contained in:
metalgearsloth
2022-05-05 18:47:32 +10:00
committed by GitHub
parent 7ea57bd47b
commit 0121025d12

View File

@@ -562,9 +562,6 @@ namespace Content.Client.Preferences.UI
private void RebuildSpriteView() private void RebuildSpriteView()
{ {
var species = Profile?.Species ?? SpeciesManager.DefaultSpecies; var species = Profile?.Species ?? SpeciesManager.DefaultSpecies;
if (_lastSpecies != species)
{
var dollProto = _prototypeManager.Index<SpeciesPrototype>(species).DollPrototype; var dollProto = _prototypeManager.Index<SpeciesPrototype>(species).DollPrototype;
if (_previewDummy != null) if (_previewDummy != null)
@@ -572,8 +569,6 @@ namespace Content.Client.Preferences.UI
_previewDummy = _entMan.SpawnEntity(dollProto, MapCoordinates.Nullspace); _previewDummy = _entMan.SpawnEntity(dollProto, MapCoordinates.Nullspace);
_lastSpecies = species; _lastSpecies = species;
}
var sprite = _entMan.GetComponent<SpriteComponent>(_previewDummy!.Value); var sprite = _entMan.GetComponent<SpriteComponent>(_previewDummy!.Value);
if (_previewSprite == null) if (_previewSprite == null)