feat: Update documentation and improve depth processing logic; bump version to 0.11.1
This commit is contained in:
@@ -7,6 +7,10 @@ import numpy as np
|
||||
|
||||
sys.path.insert(0, str(Path(__file__).parents[1] / "src"))
|
||||
|
||||
from snapform.image_depth import (
|
||||
get_modifier_input,
|
||||
set_modifier_input,
|
||||
)
|
||||
from snapform.image_mesh import create_matching_camera, load_geometry_node_group
|
||||
|
||||
|
||||
@@ -18,7 +22,7 @@ def set_input(modifier, group, name, value):
|
||||
and item.in_out == "INPUT"
|
||||
and item.name == name
|
||||
)
|
||||
modifier[item.identifier] = value
|
||||
set_modifier_input(modifier, item.identifier, value)
|
||||
|
||||
|
||||
def add_face_attributes(mesh, count):
|
||||
@@ -151,7 +155,7 @@ def main():
|
||||
for item in group.interface.items_tree
|
||||
if item.item_type == "SOCKET" and item.name == "Depth Continuity"
|
||||
)
|
||||
assert modifier[discontinuity_item.identifier] == 100.0
|
||||
assert get_modifier_input(modifier, discontinuity_item.identifier) == 100.0
|
||||
obj.update_tag(refresh={"DATA"})
|
||||
bpy.context.view_layer.update()
|
||||
culled = obj.evaluated_get(bpy.context.evaluated_depsgraph_get())
|
||||
|
||||
Reference in New Issue
Block a user