Fix color parsing

This commit is contained in:
Andrew Cassidy 2020-06-19 21:55:05 -07:00
parent 533b1f1cf4
commit 7487d3fb04

View File

@ -200,8 +200,8 @@ namespace ConformalDecals.Util {
case 3:
if (!float.TryParse(split[0], out var red)) return false;
if (!float.TryParse(split[0], out var green)) return false;
if (!float.TryParse(split[0], out var blue)) return false;
if (!float.TryParse(split[1], out var green)) return false;
if (!float.TryParse(split[2], out var blue)) return false;
value.r = (byte) (red * 0xFF);
value.g = (byte) (green * 0xFF);