From 83804a7173c7ed0096d2b585ed1d958a665bccbb Mon Sep 17 00:00:00 2001 From: Stephen Swaney Date: Fri, 5 Mar 2004 06:25:49 +0000 Subject: [PATCH] Fix for Bug 1039 Changed doc to match the parameters for Ipo New() method. Corrected error message for expected argument types in New() method. --- source/blender/python/api2_2x/Ipo.c | 2 +- source/blender/python/api2_2x/doc/Ipo.py | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/source/blender/python/api2_2x/Ipo.c b/source/blender/python/api2_2x/Ipo.c index 7ad07561079..707e079fae2 100644 --- a/source/blender/python/api2_2x/Ipo.c +++ b/source/blender/python/api2_2x/Ipo.c @@ -46,7 +46,7 @@ static PyObject *M_Ipo_New(PyObject *self, PyObject *args) Ipo *blipo; if (!PyArg_ParseTuple(args, "ss", &code,&name)) - return (EXPP_ReturnPyObjError (PyExc_TypeError,"expected string int arguments")); + return (EXPP_ReturnPyObjError (PyExc_TypeError,"expected string string arguments")); if (!strcmp(code,"Object"))idcode = ID_OB; if (!strcmp(code,"Camera"))idcode = ID_CA; diff --git a/source/blender/python/api2_2x/doc/Ipo.py b/source/blender/python/api2_2x/doc/Ipo.py index c6d88f55f34..6eb1c460b36 100644 --- a/source/blender/python/api2_2x/doc/Ipo.py +++ b/source/blender/python/api2_2x/doc/Ipo.py @@ -18,13 +18,14 @@ Example:: """ -def New (name,idcode): +def New (type, name): """ Creates a new Ipo. + @type type: string @type name: string - @type idcode: int - @param name: The Ipo's name - @param idcode: The Ipo's blocktype. Depends to the object the ipo will be linked. + @param type: The Ipo's blocktype. Depends on the object the ipo will be linked to. \ + Currently supported types are Object, Camera, World, Material. + @param name: The name for this Ipo. @rtype: Blender Ipo @return: The created Ipo. """