refactor: update depth cutout and surface handling for improved geometry manipulation and clarity
This commit is contained in:
@@ -7,6 +7,8 @@ from .smoothing import edge_boundary_field, pinned_smooth
|
||||
|
||||
def _gated(group, value, blocked, *, default):
|
||||
"""Return the value unless the blocked control is true."""
|
||||
if blocked is False:
|
||||
return value
|
||||
node = group.nodes.new("GeometryNodeSwitch")
|
||||
node.input_type = "FLOAT"
|
||||
node.inputs["True"].default_value = default
|
||||
|
||||
Reference in New Issue
Block a user