Constraints Bugfixes/Tweaks:

* Optimised transform constraint a bit
* PyConstraints now show the script-selection menu correctly when a new constraint is added (i.e.  it now displays the correct initial value).
This commit is contained in:
2008-02-10 10:01:57 +00:00
parent f46fcf7aab
commit 9992b37ac1
3 changed files with 10 additions and 7 deletions

View File

@@ -661,7 +661,7 @@ static void draw_constraint (uiBlock *block, ListBase *list, bConstraint *con, s
menustr = buildmenu_pyconstraints(data->text, &pyconindex);
but2 = uiDefButI(block, MENU, B_CONSTRAINT_TEST, menustr,
*xco+120, *yco-24, 150, 20, &pyconindex,
0.0, 1.0, 0, 0, "Set the Script Constraint to use");
0, 0, 0, 0, "Set the Script Constraint to use");
uiButSetFunc(but2, validate_pyconstraint_cb, data, &pyconindex);
MEM_freeN(menustr);