From 35b9f21530b4748b71916270ca18b0b4b8ae3723 Mon Sep 17 00:00:00 2001 From: Lila Date: Tue, 8 Jul 2025 21:27:45 +0100 Subject: [PATCH] use invert + AND instead of xor --- material/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/material/parser.py b/material/parser.py index d7b1bf9..afbaf4d 100644 --- a/material/parser.py +++ b/material/parser.py @@ -461,7 +461,7 @@ def f64_material_parse(f3d_mat: "F3DMaterialProperty", always_set: bool, set_lig for i, attr in enumerate(OTHERMODE_H_ATTRS): othermode_h |= getattr(gbi, getattr(rdp, attr)) if rdp.g_mdsft_cycletype == "G_CYC_COPY": - othermode_h ^= gbi.G_TF_BILERP | gbi.G_TF_AVERAGE + othermode_h &= ~(gbi.G_TF_BILERP | gbi.G_TF_AVERAGE) othermode_h |= getattr(gbi, get_textlut_mode(f3d_mat)) state.geo_mode, state.othermode_l, state.othermode_h = geo_mode, othermode_l, othermode_h state.save_cache()