Don't create outlines in units if they already exist

This commit is contained in:
Anuken
2024-01-21 19:12:39 -05:00
parent 7cf3ce0f66
commit 41f448af2c
2 changed files with 2 additions and 2 deletions

View File

@@ -960,7 +960,7 @@ public class UnitType extends UnlockableContent implements Senseable{
getRegionsToOutline(toOutline);
for(var region : toOutline){
if(region instanceof AtlasRegion atlas){
if(region instanceof AtlasRegion atlas && !Core.atlas.has(atlas.name + "-outline")){
String regionName = atlas.name;
Pixmap outlined = Pixmaps.outline(Core.atlas.getPixmap(region), outlineColor, outlineRadius);