Refactor comparison operations in geometry nodes
- Introduced a new `compare_node` function to streamline comparison operations across various geometry nodes. - Replaced instances of mathematical comparison nodes with the new `compare_node` function in multiple files, enhancing code readability and maintainability. - Updated related logic in cutout, depth surface, and image processing groups to utilize the new comparison method. - Ensured consistent handling of boolean logic through the introduction of a `boolean_node` function for combining boolean inputs.
This commit is contained in:
@@ -66,6 +66,9 @@ def test_saved_parameter_descriptions_match_definitions():
|
||||
}:
|
||||
assert "Smooth" not in input_names
|
||||
assert "Smooth Weight" not in input_names
|
||||
if "Mask Threshold" in parameters[group.name]:
|
||||
threshold = next(item for item in input_items if item.name == "Mask Threshold")
|
||||
assert (threshold.min_value, threshold.max_value) == pytest.approx((0.0, 0.99))
|
||||
if group.name in {
|
||||
"O Image Depth Cutout", "O Image Depth Plane", "O Image Relief Plane",
|
||||
}:
|
||||
|
||||
Reference in New Issue
Block a user