Jacques Guignot
679a44d2c6
Modification of the GetControlPoint function by Stephen, who is now responsible for this module
...
slight bug fixes (Steph.)
2003-09-02 20:11:11 +00:00
Michel Selten
b64b5d7b63
* Fix crash when linking something illegal to an Object.
...
Pointed out and fixed by Stephen Swaney
2003-08-27 18:10:59 +00:00
Willian Padovani Germano
2289f3abb6
Exppython:
...
- Adding argv to the builtin sys Python module:
Currently only argv[0] is there. This fixes a weird error that can make
correct scripts fail.
2003-08-10 23:18:00 +00:00
Michel Selten
7163867395
* Fix crash in the getParent() and getTracked() methods of the Python API.
...
This crash was reported by Jean-Michel Soler (jms).
Problem was that I was trying to be a little too intelligent. I kept a
reference to created PyObjects which at some point apparently fails. Keeping
the object references is not necessary. Now we just create a new PyObject
when necessary and let Python handle the reference counts.
2003-08-10 10:03:37 +00:00
Jacques Guignot
d24761807d
changed a return value for Irix compiler
2003-08-07 13:20:25 +00:00
Willian Padovani Germano
1e433aeb58
Exppython:
...
- Fixed crash in NMesh:
When trying to rename newly created meshes, Blender would crash due to
invalid id->lib in new_id().
2003-08-07 04:12:44 +00:00
Michel Selten
0c1f9dd832
* Updated the Python API module documentation for Object.
...
Added a couple of examples for some functions.
* Fixed some small documentation problems with regards to the implementation.
2003-08-06 22:08:56 +00:00
Willian Padovani Germano
577616b358
Exppython:
...
- Update method scene.update():
To accept an optional parameter for a "full" update (using set_scene_bg()).
- Updated the docs accordingly.
2003-08-06 19:25:06 +00:00
Michel Selten
2db07e8f27
* Updated the Python API module documentation for Object.
...
This module now contains a complete description - finally.
2003-08-06 17:04:36 +00:00
Jacques Guignot
05187adc2f
removed unuseful function calls in BezTriple.[ch]
...
general cleaning of Ipocurve.c Ipocurve.h Ipo.h Ipo.c
updated doc
2003-08-05 10:19:28 +00:00
Willian Padovani Germano
683c322b0e
Exppython:
...
- Fixed bug #399 :
Old bug on NMesh: segfault on NMesh.Face(vertexlist).
- Fixed bug #433 :
"Typo" on Armature: bone's setQuat method was changing bone->head, not
bone->quat.
2003-08-05 03:45:31 +00:00
Willian Padovani Germano
41211edfee
Exppython:
...
Text module: trying to get the filename attribute didn't check for NULL.
Reported by Stani Michiels. Fixed now.
2003-08-02 20:49:31 +00:00
Willian Padovani Germano
1a0fc24542
Exppython:
...
Expanding NMesh_update() to accept a parameter to tell it to recalculate
normals, I introduced an error: new meshes would segfault Blender. Fixed.
2003-08-02 03:37:16 +00:00
Jacques Guignot
08c1fe6818
Added a new function (member of the Ipo object) EvaluateCurveOn(int pos, float time) which returns the value of the ipo curve number pos at the given time.
...
Updated doc accordingly.
2003-08-01 19:47:01 +00:00
Stefan Gartner
4ebd7f6301
added path to IMB_imbuf_types.h to include path (needed by Image.c)
2003-07-31 18:34:41 +00:00
Willian Padovani Germano
fe07b232b7
* got rid of a warning in editipo.c:
...
changed "get_ipo(key, ..." to "get_ipo((ID *)key, ..." in line 107.
* changed insert_meshkey(Mesh *me) to insert_meshkey(Mesh *me, short offline):
To call this function from a script, so that it doesn't pop the
"relative / absolute" dialog window when the "offline" arg is non-zero.
Exppython:
* NMesh module:
- Added method NMesh.addMaterial(mat) to the NMesh module:
alternative safer (aka slower) way to add materials.
- Added optional arg to NMesh_update():
if given and equal to 1, the mesh normals are recalculated.
- Fixed NMesh.getVertexInfluences: it was segfaulting when a NULL bone was
linked to the vertex. Thanks to Jiba on the bf-python mailing list for
bug report and sample .blend file. Also made this method give an IndexError
when the vertex index is out of range.
* Material module:
Added specR, specG, specB vars for compatibility with the 2.25 API.
Pointed by Manuel Bastioni.
* Image module:
Exposed image width, height and depth parameters.
From a suggestion by jms.
* BPython Ref Doc:
- Small updates to reflect the above additions.
- Added info for the Bone type in the Armature doc.
2003-07-30 21:15:41 +00:00
Michel Selten
35c4c3222c
* Linking a Mesh object to the base object was not possible. Fixed.
...
* Clean up of some comments.
2003-07-30 21:02:55 +00:00
Michel Selten
a284d65d1c
* Updated the Object.py documentation.
...
Not all is finished, but we're getting there.
2003-07-30 20:52:35 +00:00
Michel Selten
8a558f2e45
* Fixed crash in Object.getTracked() method
...
It tried to create a new Object from the tracked variable, when the variable
was NULL. Ouch.
2003-07-30 18:47:05 +00:00
Michel Selten
916f527253
* Fixed problems in with script linking.
...
I had to update many files to get this to work.
2003-07-27 15:56:32 +00:00
Jacques Guignot
2222fc7168
added functions World_CheckPyObject World_FromPyObject World_CreatePyObject and World_compare
2003-07-27 13:53:29 +00:00
Willian Padovani Germano
c886b5a7bf
Exppython docs:
...
Fixing a small comment in the nmesh doc, to avoid confusion.
2003-07-26 20:19:01 +00:00
Jacques Guignot
28e4b0118c
added function buildParts
2003-07-25 19:53:42 +00:00
Jacques Guignot
7b324bef33
bug fixes in functions getLocation and similar.
...
added buildParts() methods, which forces the computation of the partivcle system.
2003-07-25 19:52:51 +00:00
Jacques Guignot
65de07aeec
removed a debug message
2003-07-25 09:00:01 +00:00
Michel Selten
43f8138974
* Fix an ugly crash when retrieving an object and trying to get the ipo from
...
it. Ouch, I really need to remove those small parts of duplicate code for
2.29 - too much maintanance which eventually goes wrong.
2003-07-22 18:42:57 +00:00
Jacques Guignot
9ab32780ae
addition of a small example
2003-07-22 18:11:07 +00:00
Jacques Guignot
68c3a6dccd
removed the patch for ipo attr, which had side effects
2003-07-22 13:56:41 +00:00
Willian Padovani Germano
de60889865
Exppython docs:
...
- Updates and fixes to the documentation files, only, no code involved.
2003-07-22 00:27:03 +00:00
Jacques Guignot
9a5cf3cb66
modified the function getattr, which crashed blender when someone tried to access a NULL field. This function returns now PyNone.
2003-07-21 21:58:13 +00:00
Michel Selten
a223e9f055
* Fix small compilation problem in Ipo.c
...
Moved the declaration of a variable to the beginning of a function.
2003-07-21 17:35:19 +00:00
Jacques Guignot
ee5461b06a
reincorporation in the cvs of modifications which had been lost.
2003-07-21 00:08:30 +00:00
Chris Want
85f961bdb4
Some manipulations of the keyword 'static' to get
...
blender to compile
2003-07-20 23:06:59 +00:00
Michel Selten
2ccf7ffb84
* removed the #include .c statements and replaced them with corresponding .h
...
files.
* updated the build environment to include the needed .c files.
* Updated the modules.h file to expose the necessary functions to other
modules.
2003-07-20 18:06:06 +00:00
Willian Padovani Germano
4856071402
Exppython:
...
Still compilation problems, wrong type returned in a function.
2003-07-19 21:04:33 +00:00
Willian Padovani Germano
b2d1921d26
Exppython:
...
- Trying to correct a compile problem. IpoCurve_Init wasn't declared in modules.h
2003-07-19 20:44:25 +00:00
Jacques Guignot
542f05451a
World : got rid of debug messages
...
Blender : declatation of the module IpoCurve
Ipo : modifications (new attributes) to keep the compatibility with 227 api
2003-07-19 08:32:01 +00:00
Jacques Guignot
d51107b804
Nex modules added to keep a minimal compatibility with 227 api
2003-07-19 08:29:55 +00:00
Willian Padovani Germano
68b3cfbbe5
Exppython docs:
...
- Minor: fixed wrong url to www.python.org/doc (had written 'docs').
2003-07-17 00:26:33 +00:00
Willian Padovani Germano
d6c7427053
Exppython docs:
...
- Added a very brief intro to the api doc and updated the command to generate
the documentation (it's in a comment in Blender.py). Improved the NMesh ex.
2003-07-16 01:44:51 +00:00
Willian Padovani Germano
9cb79c6534
Exppython:
...
- "last minute" updates to documentation and two modules.
2003-07-13 16:28:17 +00:00
Jacques Guignot
482a8a5880
forgotten to remove the calls to removed functions...
2003-07-12 21:31:55 +00:00
Jacques Guignot
65237d2936
Doc for the world module. Got rid of some unuseful fields in World module.
...
The last doc ;-))
2003-07-12 20:48:56 +00:00
Willian Padovani Germano
6046d05a7e
Exppython:
...
- A few more changes to integrate the documentation:
Instructions to build it with epydoc are on the file Blender.py.
2003-07-12 18:21:07 +00:00
Willian Padovani Germano
c467b19c75
Exppython:
...
- More documentation files for epydoc.
- Few minor changes in other files.
2003-07-12 18:02:54 +00:00
Jacques Guignot
37c4fa647d
Effect module documentation. What can more tedious than writing docs ?...
2003-07-12 14:35:49 +00:00
Jacques Guignot
6c03e374fa
changed the get/setSize to get/setWinSize. Tks Willian.
2003-07-10 22:03:27 +00:00
Jacques Guignot
106263dda7
documentation for the Metaball module.
2003-07-10 21:56:03 +00:00
Michel Selten
f999426daa
* Object_getInverseMatrix now returns a correct matrix.
...
The problem was that the memory was allocated at the stack, but after the
Python object was created, the pointer to the memory goes invalid.
Thanks to Kester Maddoc for providing a patch - almost 2 weeks ago. Ouch,
I should read my mail a little bit better.
2003-07-10 20:00:51 +00:00
Jacques Guignot
c132c6abca
2 new functions : getSize and setSize
2003-07-10 13:00:44 +00:00