From 60481e4d99920d28c840342c0b27fa083dd4ffd9 Mon Sep 17 00:00:00 2001 From: Ethan-Hall Date: Mon, 7 Mar 2022 15:58:24 +0100 Subject: Fix T96195: f-curve factorized polynomial generator broken UI The polynomial parameters were not shown correctly. Differential Revision: https://developer.blender.org/D14254 --- source/blender/editors/animation/fmodifier_ui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/animation') diff --git a/source/blender/editors/animation/fmodifier_ui.c b/source/blender/editors/animation/fmodifier_ui.c index c4d8484e6a8..8e0fad2d513 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, IFACE_("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, IFACE_("\u2715 (Ax + B)"), ICON_NONE); -- cgit v1.2.3