Draw.py - typo

sceneSequence.h - bad type check, dosnt matter really since that define isnt used yet.
SurfNurb.c - was using lib hashing function and surfNurbs not a lib! (own mistake)
buttons_editing.c - Curves PathLen button was MAXFRAMEF and pathlen is a short so the button wrapped around.
This commit is contained in:
Campbell Barton 2007-07-28 09:26:53 +00:00
parent f8544eefad
commit 48b07b7f15
4 changed files with 5 additions and 4 deletions

@ -772,7 +772,7 @@ PyTypeObject SurfNurb_Type = {
/* More standard operations (here for binary compatibility) */
( hashfunc ) GenericLib_hash, /* hashfunc tp_hash; */
NULL, /* hashfunc tp_hash; */
NULL, /* ternaryfunc tp_call; */
NULL, /* reprfunc tp_str; */
NULL, /* getattrofunc tp_getattro; */

@ -249,7 +249,7 @@ def UIBlock(draw):
@note: Within this popup, Redraw events and the registered button callback will not work.
For buttons to run events, use per button callbacks.
@note: OpenGL drawing functions wont work within this popup, for text use L{Label} rather then L{Text}
@warning: L{Menu} will not work properly within a UIBlock, this is a limitation with blenders user user interface internals.
@warning: L{Menu} will not work properly within a UIBlock, this is a limitation with blenders user interface internals.
"""
def Register(draw = None, event = None, button = None):

@ -41,7 +41,7 @@ extern PyTypeObject Sequence_Type;
extern PyTypeObject SceneSeq_Type;
#define BPy_Sequence_Check(v) ((v)->ob_type == &Sequence_Type)
#define BPy_SceneSeq_Check(v) ((v)->ob_type == &Sequence_Type)
#define BPy_SceneSeq_Check(v) ((v)->ob_type == &SceneSeq_Type)
/*****************************************************************************/

@ -3008,7 +3008,8 @@ static void editing_panel_curve_type(Object *ob, Curve *cu)
uiDefBut(block, LABEL, 0, str, 675,135,75,19, 0, 1.0, 0, 0, 0, "");
uiBlockBeginAlign(block);
uiDefButS(block, NUM, B_RECALCPATH, "PathLen:", 600,50,150,19, &cu->pathlen, 1.0, MAXFRAMEF, 0, 0, "If no speed Ipo was set, the amount of frames of the path");
/*note, PathLen's max was MAXFRAMEF but this is a short, perhaps the pathlen should be increased later on */
uiDefButS(block, NUM, B_RECALCPATH, "PathLen:", 600,50,150,19, &cu->pathlen, 1.0, 32767.0f, 0, 0, "If no speed Ipo was set, the amount of frames of the path");
uiDefButBitS(block, TOG, CU_PATH, B_RECALCPATH, "CurvePath", 600,30,75,19 , &cu->flag, 0, 0, 0, 0, "Enables curve to become translation path");
uiDefButBitS(block, TOG, CU_FOLLOW, REDRAWVIEW3D, "CurveFollow",675,30,75,19, &cu->flag, 0, 0, 0, 0, "Makes curve path children to rotate along path");
uiDefButBitS(block, TOG, CU_STRETCH, B_CURVECHECK, "CurveStretch", 600,10,150,19, &cu->flag, 0, 0, 0, 0, "Option for curve-deform: makes deformed child to stretch along entire path");