Skip to content

Commit

Permalink
Fixed feathers not showing up on forgotten beasts.
Browse files Browse the repository at this point in the history
  • Loading branch information
RosaryMala committed Sep 27, 2016
1 parent 63f3635 commit ec74d02
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Dwarf Portrait/CreatureBodyDiagram.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -262,10 +262,8 @@ private static void AddPart(Canvas canvas, Vector parentPos, BodyPart part, Vect
case "EYEBROW":
continue;
}
if (usedLayer == null || layer.Original.layer_depth <= usedLayer.Original.layer_depth) // Lower depth = shallower layer. -1 = surface.
if (usedLayer == null || layer.Original.layer_depth < usedLayer.Original.layer_depth) // Lower depth = shallower layer. -1 = surface. we take the first non-duplicated layer from the shallowest layers
{
if (usedLayer == null || layer.Original.tissue_id > usedLayer.Original.tissue_id)
{
int duplicates = 0;
foreach (var testLayer in part.Layers)
{
Expand All @@ -276,7 +274,6 @@ private static void AddPart(Canvas canvas, Vector parentPos, BodyPart part, Vect
}
if (duplicates <= 1)
usedLayer = layer;
}
}
}
Color fillColor = Color.FromRgb(255, 255, 255);
Expand Down

0 comments on commit ec74d02

Please sign in to comment.