Skip to content

Commit b275696

Browse files
author
Fraser Greenroyd
committed
Fix logic in panel shade creation
1 parent ffb8d1c commit b275696

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

IES_Engine/Convert/Environment/Panel.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ public static List<string> ToIESShading(this List<Panel> panelsAsShade, Settings
5151

5252
List<string> gemPanel = new List<string>();
5353

54-
bool isTranslucent = panels.First().Type != PanelType.Shade;
55-
5654
for (int x = 0; x < panels.Count; x++)
5755
{
5856
gemPanel.Add("LAYER\n");
@@ -62,7 +60,7 @@ public static List<string> ToIESShading(this List<Panel> panelsAsShade, Settings
6260
gemPanel.Add("CATEGORY\n");
6361
gemPanel.Add("1\n");
6462
gemPanel.Add("TYPE\n");
65-
if (!isTranslucent)
63+
if (panels[x].Type == PanelType.Shade)
6664
{
6765
gemPanel.Add("4\n");
6866
}

0 commit comments

Comments
 (0)