refactor: update depth cutout and surface handling for improved geometry manipulation and clarity

This commit is contained in:
2026-09-18 01:43:52 +08:00
parent 076a8c90f1
commit 0e0287d340
13 changed files with 272 additions and 191 deletions

View File

@@ -58,8 +58,7 @@ def check_asset_library(asset_path):
modifier = obj.modifiers.new("Asset Check", "NODES")
modifier.node_group = node_group
values = {"Subdivide": 0, "Thickness": 0.2, "Reference Depth": 2.0,
"Depth Image": depth_image, "Uniform Scale": 1.0, "Normal Smooth": 0,
"Depth Split": 0.0}
"Depth Image": depth_image, "Uniform Scale": 1.0, "Depth Split": 0.0}
if node_group.name == "O Image Cutout Symmetry":
values["Offset"] = 0.5
for item in node_group.interface.items_tree:
@@ -75,10 +74,9 @@ def check_asset_library(asset_path):
assert not list(modifier.node_warnings), (
node_group.name, [warning.message for warning in modifier.node_warnings],
)
assert not {attribute.name for attribute in result.attributes} & {
".o_anyimage_depth_cut", ".o_anyimage_original_boundary",
"_o_anyimage_depth_cut",
}, node_group.name
assert not any(
"o_anyimage" in attribute.name for attribute in result.attributes
), node_group.name
assert not any(
attribute.name.startswith("_o_") for attribute in result.attributes
), node_group.name