Add new functionality for image rectification and depth metadata handling
- Implemented a preview tool for rectifying images with interactive aspect controls in `preview.py`. - Added tests for depth metadata loading to ensure consistent schema usage in `test_depth_metadata.py`. - Developed comprehensive tests for cutout calibration processes in `test_cutout_calibration.py`, including stability checks and depth calibration. - Created tests for frame compositing operations in `test_frame_compositing.py`, ensuring correct handling of depth and transparency. - Introduced material slot inheritance functionality in `material_slots.py` to manage geometry material assignments. - Built shared shader nodes for material processing in `shader.py`, including roughness and bump mapping setups.
This commit is contained in:
@@ -18,6 +18,10 @@ class ServerPanelTest(BlenderTestCase):
|
||||
self.assertIn(("row", label, icon), events.labels)
|
||||
self.assertIn("anyimage.restart_server", operators)
|
||||
self.assertIn("anyimage.stop_server", operators)
|
||||
self.assertIn(("row", "No Models Loaded", None), events.labels)
|
||||
self.assertIn(
|
||||
("anyimage.clear_models", state == "READY"), events.operators
|
||||
)
|
||||
|
||||
for state in ("STOPPED", "STARTING", "ERROR"):
|
||||
with self.subTest(state=state):
|
||||
@@ -27,31 +31,6 @@ class ServerPanelTest(BlenderTestCase):
|
||||
self.assertNotIn("anyimage.stop_server", operators)
|
||||
|
||||
|
||||
def test_server_panel_wraps_multiple_cached_models(self):
|
||||
for cached_names, expected_labels in (
|
||||
((), [("row", "Cached: None")]),
|
||||
(("Model A",), [("row", "Cached: Model A")]),
|
||||
(
|
||||
("Model A", "Model B"),
|
||||
[
|
||||
("column", "Cached:"),
|
||||
("column", "Model A"),
|
||||
("column", "Model B"),
|
||||
],
|
||||
),
|
||||
):
|
||||
with self.subTest(cached_names=cached_names):
|
||||
events = self._draw_server_panel("READY", cached_names)
|
||||
cached_labels = [
|
||||
(kind, text)
|
||||
for kind, text, _icon in events.labels
|
||||
if text != "Running"
|
||||
]
|
||||
self.assertEqual(cached_labels, expected_labels)
|
||||
operators = [identifier for identifier, _enabled in events.operators]
|
||||
self.assertIn("anyimage.clear_models", operators)
|
||||
|
||||
|
||||
def test_status_bar_reads_runtime_state(self):
|
||||
calls = []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user