Cleanup: avoid multiplying lists multiple times

Parenthesis are important in this case to avoid creating a list with
multiplication, then multiplying it again.

Oversight in 58c8c4fde3.
This commit is contained in:
Campbell Barton 2022-12-15 09:12:17 +11:00
parent f167e366da
commit 2d21fc3f5d
1 changed files with 1 additions and 1 deletions

View File

@ -539,7 +539,7 @@ class KeyframesCo:
keyframe_points = fcurve.keyframe_points
co_buffer = [0] * 2 * len(keyframe_points)
co_buffer = [0] * (2 * len(keyframe_points))
keyframe_points.foreach_get("co", co_buffer)
co_buffer.extend(key_values)