From ba6263a1b446f18220209d75c9cd83349ac91587 Mon Sep 17 00:00:00 2001 From: Gumsk Date: Sat, 23 Aug 2025 17:22:46 +0900 Subject: [PATCH] Update material_node.py Fixed colorspace setting --- NMS/material_node.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NMS/material_node.py b/NMS/material_node.py index b9a20c7..c3e5b27 100644 --- a/NMS/material_node.py +++ b/NMS/material_node.py @@ -102,7 +102,7 @@ def create_material_node(mat_path: str, local_root_directory: str): _path = realize_path(tex_path, local_root_directory) if _path is not None and op.exists(_path): img = bpy.data.images.load(_path) - img.colorspace_settings.name = 'linear' + img.colorspace_settings.name = 'Linear Rec.2020' mask_texture = nodes.new(type='ShaderNodeTexImage') mask_texture.name = mask_texture.label = 'Texture Image - Mask' mask_texture.image = img @@ -152,7 +152,7 @@ def create_material_node(mat_path: str, local_root_directory: str): _path = realize_path(tex_path, local_root_directory) if _path is not None and op.exists(_path): img = bpy.data.images.load(_path) - img.colorspace_settings.name = 'linear' + img.colorspace_settings.name = 'Linear Rec.2020' normal_texture = nodes.new(type='ShaderNodeTexImage') normal_texture.name = normal_texture.label = 'Texture Image - Normal' # noqa normal_texture.image = img