This commit is contained in:
Nicolas Predella 2026-05-29 14:04:01 +03:00
parent ac788ef432
commit 6536d34eca

View file

@ -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)