diff --git a/infra/blender/blender_mesh_capture.py b/infra/blender/blender_mesh_capture.py index 55cf94b..1b2a2d9 100644 --- a/infra/blender/blender_mesh_capture.py +++ b/infra/blender/blender_mesh_capture.py @@ -413,13 +413,9 @@ def _cached_capture_mesh_edges( f_attr_name: str = "f_rate", extra_attrs: dict[str, str] | None = None ) -> tuple[list[NDArray[float64]], list[NDArray[float64]], list[NDArray[float64]], dict[str, list[NDArray[float64]]]]: - # This helper expects that the object and mesh exist and are accessible via bpy.data obj = bpy.data.objects.get(obj_name) if not obj: return [], [], [], {} - # We don't use obj_eval here directly as it's not hashable, - # but we assume this is called when we know we need to re-capture. - # The actual capture logic stays the same but is now inside this cached function. try: depsgraph = bpy.context.evaluated_depsgraph_get() obj_eval = obj.evaluated_get(depsgraph)