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:
authorJoshua Leung <aligorith@gmail.com>2012-12-21 09:55:17 +0400
committerJoshua Leung <aligorith@gmail.com>2012-12-21 09:55:17 +0400
commit44dd39ea2239ca78d21a51ae40790ee6a0329678 (patch)
tree6eadffa4704888e3a05a2019d98438c5effa6a72 /source/blender/editors/animation
parentb2c66e268f68ee406e5e05a65d9d1609b65d20c4 (diff)
Bugfix [#33623] Missing labels in UI for Expanded Polynomial FModifier
Fix for second issue in the UI for this FModifier, where the "x" would not be shown for order=1 where DPI >= 88 and Text AA is off, as the label sizes used were too small.
Diffstat (limited to 'source/blender/editors/animation')
-rw-r--r--source/blender/editors/animation/fmodifier_ui.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/animation/fmodifier_ui.c b/source/blender/editors/animation/fmodifier_ui.c
index 6417a5080f3..8d35acae590 100644
--- a/source/blender/editors/animation/fmodifier_ui.c
+++ b/source/blender/editors/animation/fmodifier_ui.c
@@ -151,7 +151,7 @@ static void draw_modifier__generator(uiLayout *layout, ID *id, FModifier *fcm, s
}
else {
/* basic size (just "x") */
- maxXWidth = 15;
+ maxXWidth = UI_GetStringWidth("x") + 10;
}
/* draw controls for each coefficient and a + sign at end of row */
@@ -233,14 +233,14 @@ static void draw_modifier__generator(uiLayout *layout, ID *id, FModifier *fcm, s
/* closing bracket and multiplication sign */
if ( (i != (data->poly_order - 1)) || ((i == 0) && data->poly_order == 2) ) {
- uiDefBut(block, LABEL, 1, ") ×", 0, 0, 30, 20, NULL, 0.0, 0.0, 0, 0, "");
+ uiDefBut(block, LABEL, 1, ") ×", 0, 0, 40, 20, NULL, 0.0, 0.0, 0, 0, "");
/* set up new row for the next pair of coefficients */
row = uiLayoutRow(layout, TRUE);
block = uiLayoutGetBlock(row);
}
else
- uiDefBut(block, LABEL, 1, ") ", 0, 0, 30, 20, NULL, 0.0, 0.0, 0, 0, "");
+ uiDefBut(block, LABEL, 1, ") ", 0, 0, 40, 20, NULL, 0.0, 0.0, 0, 0, "");
}
}
break;