refactor: update depth cutout and surface handling for improved geometry manipulation and clarity
This commit is contained in:
@@ -174,7 +174,7 @@ def test_temporary_fields_are_removed_and_user_attributes_survive(thickness):
|
||||
obj, set_value = surface()
|
||||
obj.data.attributes.new("o_depth_probe", "FLOAT", "POINT")
|
||||
attribute = obj.data.attributes.new("o_user_weight", "FLOAT", "POINT")
|
||||
obj.data.attributes.new(".o_anyimage_user_weight", "FLOAT", "POINT")
|
||||
obj.data.attributes.new(".o_user_weight", "FLOAT", "POINT")
|
||||
for value in attribute.data:
|
||||
value.value = 0.75
|
||||
set_value("Depth Split", 0.5)
|
||||
@@ -184,10 +184,8 @@ def test_temporary_fields_are_removed_and_user_attributes_survive(thickness):
|
||||
try:
|
||||
assert {a.name for a in mesh.attributes if a.name.startswith(("o_depth_", "o_balloon_surface_"))} == {"o_depth_probe"}
|
||||
assert "UVMap" in mesh.attributes
|
||||
assert ".o_anyimage_user_weight" in mesh.attributes
|
||||
assert "_o_anyimage_depth_cut" not in mesh.attributes
|
||||
assert ".o_anyimage_original_boundary" not in mesh.attributes
|
||||
assert ".o_anyimage_depth_cut" not in mesh.attributes
|
||||
assert ".o_user_weight" in mesh.attributes
|
||||
assert not any("o_anyimage" in a.name for a in mesh.attributes)
|
||||
assert not any(a.name.startswith("_o_") for a in mesh.attributes)
|
||||
assert all(
|
||||
v.value == pytest.approx(0.75)
|
||||
|
||||
Reference in New Issue
Block a user