Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEthan-Hall <Ethan1080>2022-03-07 17:58:24 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2022-03-24 12:43:41 +0300
commitfe6999352a8d0aad134645f9a67188e45a30d18a (patch)
treecb1e1f7b531487fa98c78c438b3e69c65b10cbda
parentfc56ef5f9701a89706973f5943f53befc225e28e (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.c2
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);