mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-22 22:45:40 +00:00
Fixed: #2469 Converting shape type did not convert gradient colors transparency
This commit is contained in:
@@ -193,6 +193,14 @@ public class GRADIENT implements Serializable {
|
||||
result.gradientRecords = Arrays.copyOfRange(result.gradientRecords, 0, 8);
|
||||
}
|
||||
}
|
||||
|
||||
for (GRADRECORD rec : result.gradientRecords) {
|
||||
if (shapeNum < 3) {
|
||||
rec.color = new RGB(rec.color);
|
||||
} else {
|
||||
rec.color = new RGBA(rec.color);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user