Commit Graph

4229 Commits

Author SHA1 Message Date
4ebd7f6301 added path to IMB_imbuf_types.h to include path (needed by Image.c) 2003-07-31 18:34:41 +00:00
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
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
a284d65d1c * Updated the Object.py documentation.
Not all is finished, but we're getting there.
2003-07-30 20:52:35 +00:00
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
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
2222fc7168 added functions World_CheckPyObject World_FromPyObject World_CreatePyObject and World_compare 2003-07-27 13:53:29 +00:00
c886b5a7bf Exppython docs:
Fixing a small comment in the nmesh doc, to avoid confusion.
2003-07-26 20:19:01 +00:00
28e4b0118c added function buildParts 2003-07-25 19:53:42 +00:00
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
65de07aeec removed a debug message 2003-07-25 09:00:01 +00:00
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
9ab32780ae addition of a small example 2003-07-22 18:11:07 +00:00
68c3a6dccd removed the patch for ipo attr, which had side effects 2003-07-22 13:56:41 +00:00
de60889865 Exppython docs:
- Updates and fixes to the documentation files, only, no code involved.
2003-07-22 00:27:03 +00:00
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
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
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
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
4856071402 Exppython:
Still compilation problems, wrong type returned in a function.
2003-07-19 21:04:33 +00:00
b2d1921d26 Exppython:
- Trying to correct a compile problem. IpoCurve_Init wasn't declared in modules.h
2003-07-19 20:44:25 +00:00
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
d51107b804 Nex modules added to keep a minimal compatibility with 227 api 2003-07-19 08:29:55 +00:00
68b3cfbbe5 Exppython docs:
- Minor: fixed wrong url to www.python.org/doc (had written 'docs').
2003-07-17 00:26:33 +00:00
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
9cb79c6534 Exppython:
- "last minute" updates to documentation and two modules.
2003-07-13 16:28:17 +00:00
482a8a5880 forgotten to remove the calls to removed functions... 2003-07-12 21:31:55 +00:00
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
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
c467b19c75 Exppython:
- More documentation files for epydoc.
- Few minor changes in other files.
2003-07-12 18:02:54 +00:00
37c4fa647d Effect module documentation. What can more tedious than writing docs ?... 2003-07-12 14:35:49 +00:00
6c03e374fa changed the get/setSize to get/setWinSize. Tks Willian. 2003-07-10 22:03:27 +00:00
106263dda7 documentation for the Metaball module. 2003-07-10 21:56:03 +00:00
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
c132c6abca 2 new functions : getSize and setSize 2003-07-10 13:00:44 +00:00
f83cc2f8c5 anged CurveCreatePyObject to Curce_CreatePyObject 2003-07-10 08:27:34 +00:00
faff703778 removed a wrong parameter name 2003-07-10 00:28:03 +00:00
2ef1ee21e4 Documentation fot the Ipo module 2003-07-10 00:23:11 +00:00
be1338cb10 minor changes; deleted unuseful functions. 2003-07-10 00:22:17 +00:00
b216fb1729 removed a function prototype which was already in modules.h 2003-07-09 23:21:41 +00:00
3482beef16 name changes for Curve functions (added an underscore) 2003-07-09 23:19:18 +00:00
d92c4f798f documentation for the module Curve, to be formatted with epydoc 2003-07-09 21:20:01 +00:00
4cf1470b99 change the values of the functions get/set size/loc/rot to lists.
added the attributes loc, rot, size
changed the parameters of getControlPoint to int int list
cosmetic changes in names
2003-07-09 21:18:34 +00:00
6fe633aef3 added what needed to link a curve to an object (modification of Object_link
added 2 functions Curve_CheckPyObject and Curve_FromPyObject
that I had forgotten
2003-07-09 12:25:27 +00:00
da913434db * Forgot to update the Object.name variable functionality. Had a bug in it to
return the first 2 identifying characters too - which it shouldn't.
2003-07-08 20:06:00 +00:00
b4b10dfff8 * removed the global uiFrontbuf from interface.c (and python, it was used
there)
* replaced with nice local (uiBlock) storage of what goes on in drawing.
  it now only calls a glDrawBuffer() and glFinish() when it is actually
  needed

Result: interface drawing in general is speedy again, especially for gfx
cards that dont allow frontbuffer drawing, and copy stuff to the frontbuf
with a glFinish() call.

Needs to be tested on all platforms... report to me when you see problems
like menus not drawing correctly, tooltips not drawing or not disappearing,
etc.
2003-07-07 15:50:44 +00:00
828347f698 * removed some debugging prints. Accidentally committed them last time.
* nicely format the matrix object when printing.
2003-07-06 20:34:59 +00:00
62ffb7a5f6 * Fixed:
- Object_getMatrix()    - prints correct values now
    - Object_getName()      - removes the two identifying chars from the front
    - Object_setName()      - calls the internal function to correctly set the
                              name of the object.
* Removed the Object_print function. It causes a crash on Windows.
* Updated the Object_repr function to display the Object nicely.
* Object.Get() now returns a list of Objects when no argument has passed to
  it.
* Changed the function declaration for newMatrixObject function
  Easier to read now.
2003-07-06 19:58:27 +00:00
3328cf0d2d Exppython: small update to fix a warning and a compile problem. 2003-07-05 01:44:32 +00:00