[Bf-blender-cvs] [60481e4d999] blender-v3.1-release: Fix T96195: f-curve factorized polynomial generator broken UI
Ethan-Hall
noreply at git.blender.org
Mon Mar 7 17:31:25 CET 2022
Commit: 60481e4d99920d28c840342c0b27fa083dd4ffd9
Author: Ethan-Hall
Date: Mon Mar 7 15:58:24 2022 +0100
Branches: blender-v3.1-release
https://developer.blender.org/rB60481e4d99920d28c840342c0b27fa083dd4ffd9
Fix T96195: f-curve factorized polynomial generator broken UI
The polynomial parameters were not shown correctly.
Differential Revision: https://developer.blender.org/D14254
===================================================================
M source/blender/editors/animation/fmodifier_ui.c
===================================================================
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);
More information about the Bf-blender-cvs
mailing list