Fix issue with lock alpha channel on large brushes

Hide Bedrock Block format on start screen
Update Font Awesome
This commit is contained in:
JannisX11 2022-06-26 22:43:00 +02:00
parent 137d97998f
commit 19d551003b
3 changed files with 2 additions and 1 deletions

Binary file not shown.

View File

@ -1234,6 +1234,7 @@ var block_format = new ModelFormat({
category: 'minecraft',
extension: 'json',
icon: 'icon-format_bedrock',
show_on_start_screen: false,
rotate_cubes: true,
box_uv: false,
optional_box_uv: true,

View File

@ -870,7 +870,7 @@ const Painter = {
if (Math.isNumber(base)) base = Jimp.intToRGBA(base)
if (Math.isNumber(added)) added = Jimp.intToRGBA(added)
if (added.a*opacity == 1) return added
if (added.a*opacity == 1) return {r: added.r, g: added.g, b: added.b, a: added.a};
var original_a = added.a
added.a = added.a*opacity