chore: Bump version to 0.12.13 and update documentation for color space handling

This commit is contained in:
2026-08-19 13:42:29 +08:00
parent c115498b5e
commit 753f87da03
20 changed files with 189 additions and 37 deletions

View File

@@ -14,6 +14,7 @@ sys.path.insert(
)
from snapform.blender.depth_plane import MOGE_SURFACE_MATERIAL_NODE_GROUP_NAME
from snapform.blender.depth_plane import material_color_space_name
from snapform.blender.surface import (
MOGE_NODE_GROUP_NAME,
build_image_mesh,
@@ -198,7 +199,9 @@ def main():
if node.bl_idname == "ShaderNodeTexImage" and node.image == foreground
)
assert color_texture.image.name == "MoGe Surface Test.color"
assert color_texture.image.colorspace_settings.name == "AgX Base sRGB"
assert color_texture.image.colorspace_settings.name == material_color_space_name(
bpy.context.scene
)
normal_texture = next(
node for node in surface.data.materials[0].node_tree.nodes
if node.bl_idname == "ShaderNodeTexImage"