PyAPI: rename undo memory usage method, improve doc-string

Ref !146095
This commit is contained in:
Namit Bhutani
2025-09-11 20:22:37 +05:30
committed by Campbell Barton
parent 1e2ed785f7
commit 2110391058
2 changed files with 8 additions and 8 deletions

View File

@@ -182,7 +182,7 @@ def _run_brush_test(args: dict):
bpy.ops.sculpt.brush_stroke(stroke=generate_stroke(context_override), override_location=True)
bpy.ops.ed.undo_push()
measurements.append(time.time() - start)
memory_info = bpy.app.undo_memory_info()
memory_info = bpy.app.memory_usage_undo()
if len(measurements) >= min_measurements and (time.time() - total_time_start) > timeout:
break
if len(measurements) >= max_measurements: