Log In
New Account
Home My Page Projects Blender 2.x BF release
Summary Activity Tracker SCM Files

Blender 2.4x Bug Tracker: Browse

[#1039] Incorrect Ipo.New documentation

Date:
2004-02-29 02:55
Priority:
3
State:
Closed
Submitted by:
John Swensen (jswensen)
Assigned to:
Stephen Swaney (stiv)
Group:
V 2.32 release
Resolution:
Fixed
Category:
Python
 
Summary:
Incorrect Ipo.New documentation
Detailed description
The Ipo.New function's documentation does not follow
the standard of the New functions for all the other
Python API modules. Every other New function that has
both a type and an name has the format illustrated by
the Object module shown below.

Object.New(type,name)
where type and name are both strings

The Pythom 2.32 API Documentation shows that the
Ipo.New function has a prototype of

Ipo.New(name, idcode)
where name is a string and idcode is an int

I had trouble getting the Ipo.New function to work, so
I went to the Blender sources for further clarification.
In the file "blender/python/api2_2x/Ipo.c", there is a
function called M_Ipo_New. It is the function that is
called when a Python call to Ipo.New is made. The code
verifies that the existing documentation is wrong and
should be changed to

Ipo.New(type,name)
where type and name are both strings

Followup

No Followups Have Been Posted

 

Attached Files:

No Files Currently Attached

Changes:

Field Old Value Date By
ResolutionInvestigate2004-03-05 07:26stiv
close_dateNone2004-03-05 07:26stiv
assigned_tomichel2004-03-05 07:26stiv
status_idOpen2004-03-05 07:26stiv
ResolutionNew2004-02-29 17:20michel
assigned_tonone2004-02-29 17:20michel