diff options
author | Ton Roosendaal <ton@blender.org> | 2005-09-03 14:50:21 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-09-03 14:50:21 +0400 |
commit | fd7d224d4cc64af4c1c2a458556ce0838aa9f79e (patch) | |
tree | 19052c1bc3aa3527017e721fa0a0623340e34a83 /source/blender/src/drawipo.c | |
parent | b787bc2829d9260659650a63dc4ca055b4e69aae (diff) |
Bug fix #2972
Copy/Paste bone name buttons crashed, didn't use the callback for buttons
proper yet.
Also added MAXFRAME defines for buttons, instead of hardcoded values 9000
or 18000
Diffstat (limited to 'source/blender/src/drawipo.c')
-rw-r--r-- | source/blender/src/drawipo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/src/drawipo.c b/source/blender/src/drawipo.c index 26941b5d71d..2391e11da3b 100644 --- a/source/blender/src/drawipo.c +++ b/source/blender/src/drawipo.c @@ -1652,8 +1652,8 @@ static void ipo_panel_properties(short cntrl) // IPO_HANDLER_PROPERTIES extern int totipo_vertsel; // editipo.c uiDefBut(block, LABEL, 0, "Visible curves", 10, 200, 150, 19, NULL, 1.0, 0.0, 0, 0, ""); - uiDefButF(block, NUM, B_MUL_IPO, "Xmin:", 10, 180, 150, 19, &G.sipo->tot.xmin, G.sipo->tot.xmin-1000.0, 18000.0, 100, 0, ""); - uiDefButF(block, NUM, B_MUL_IPO, "Xmax:", 160, 180, 150, 19, &G.sipo->tot.xmax, G.sipo->tot.ymin-1000.0, 18000.0, 100, 0, ""); + uiDefButF(block, NUM, B_MUL_IPO, "Xmin:", 10, 180, 150, 19, &G.sipo->tot.xmin, G.sipo->tot.xmin-1000.0, MAXFRAMEF, 100, 0, ""); + uiDefButF(block, NUM, B_MUL_IPO, "Xmax:", 160, 180, 150, 19, &G.sipo->tot.xmax, G.sipo->tot.ymin-1000.0, MAXFRAMEF, 100, 0, ""); uiDefButF(block, NUM, B_MUL_IPO, "Ymin:", 10, 160, 150, 19, &G.sipo->tot.ymin, G.sipo->tot.ymin-1000.0, 5000.0, 100, 0, ""); uiDefButF(block, NUM, B_MUL_IPO, "Ymax:", 160, 160, 150, 19, &G.sipo->tot.ymax, G.sipo->tot.ymin-1000.0, 5000.0, 100, 0, ""); @@ -1666,7 +1666,7 @@ static void ipo_panel_properties(short cntrl) // IPO_HANDLER_PROPERTIES } /* this one also does keypositions */ - if(G.sipo->ipo) ipo_editvertex_buts(block, G.sipo, -10000, 18000); + if(G.sipo->ipo) ipo_editvertex_buts(block, G.sipo, -10000, MAXFRAMEF); } static void ipo_blockhandlers(ScrArea *sa) |