diff --git a/addons/io_scene_swbf_msh/msh_utilities.py b/addons/io_scene_swbf_msh/msh_utilities.py index eb98571..7715383 100644 --- a/addons/io_scene_swbf_msh/msh_utilities.py +++ b/addons/io_scene_swbf_msh/msh_utilities.py @@ -23,8 +23,8 @@ def min_vec(l: Vector, r: Vector) -> Vector: def pack_color(color) -> int: packed = 0 - packed |= (int(color[0] * 255.0 + 0.5) << 8) - packed |= (int(color[1] * 255.0 + 0.5) << 16) + packed |= (int(color[0] * 255.0 + 0.5) << 16) + packed |= (int(color[1] * 255.0 + 0.5) << 8) packed |= (int(color[2] * 255.0 + 0.5)) packed |= (int(color[3] * 255.0 + 0.5) << 24)