diff options
author | Ethan-Hall <Ethan1080> | 2022-03-07 17:58:24 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2022-03-24 12:43:41 +0300 |
commit | fe6999352a8d0aad134645f9a67188e45a30d18a (patch) | |
tree | cb1e1f7b531487fa98c78c438b3e69c65b10cbda | |
parent | fc56ef5f9701a89706973f5943f53befc225e28e (diff) |
Fix T96195: f-curve factorized polynomial generator broken UI
The polynomial parameters were not shown correctly.
Differential Revision: https://developer.blender.org/D14254
-rw-r--r-- | source/blender/editors/animation/fmodifier_ui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/animation/fmodifier_ui.c b/source/blender/editors/animation/fmodifier_ui.c index 653bd72b364..109a999f41d 100644 --- a/source/blender/editors/animation/fmodifier_ui.c +++ b/source/blender/editors/animation/fmodifier_ui.c @@ -427,7 +427,7 @@ static void generator_panel_draw(const bContext *C, Panel *panel) uiLayout *first_row = uiLayoutRow(col, true); uiItemFullR(first_row, ptr, prop, 0, 0, 0, N_("y = (Ax + B)"), ICON_NONE); uiItemFullR(first_row, ptr, prop, 1, 0, 0, "", ICON_NONE); - for (int i = 2; i < data->arraysize - 1; i++) { + for (int i = 2; i < data->arraysize - 1; i += 2) { /* \u2715 is the multiplication symbol. */ uiLayout *row = uiLayoutRow(col, true); uiItemFullR(row, ptr, prop, i, 0, 0, N_("\u2715 (Ax + B)"), ICON_NONE); |