Commit Graph

162 Commits

Author SHA1 Message Date
bac66d0a19 Exppython: small changes in NMesh internals and docs 2003-10-20 18:57:31 +00:00
a56d3d189a included "BLI_arithb.h" for normal calculations... 2003-10-19 16:03:18 +00:00
Stephen Swaney
c19d84f89e Fix unchecked pointer reference when adding sitedirs to sys.path.
This is a bugfix against the 2.28c release.
2003-10-19 06:26:32 +00:00
56ad0d31b9 Added support for returning the normal of a NMFace 2003-10-19 03:15:43 +00:00
1bc0f43da0 Getting rid of warnings in NMesh.c, should fix compile problems. 2003-10-12 23:41:33 +00:00
e4d86c85c3 Added updates to reflect the vertex grouping changes in NMesh.c 2003-10-12 17:15:51 +00:00
c4d9d0dc30 Add vertex group support... 2003-10-12 16:23:39 +00:00
642e27f3e9 Added vertex grouping support 2003-10-12 16:14:03 +00:00
572661b9b8 Added vertex group support... 2003-10-12 16:13:12 +00:00
a7fe79a142 Removed spaces - test commit 2003-10-12 16:03:52 +00:00
e33e4addeb Referenced a wrong variable. Stupid typo. 2003-10-05 11:23:49 +00:00
d626f03962 * Made internals of the Python Object module more consistent with other
modules.
* .setLocation(), .setDeltaLocation() and .setEuler() now can accept 3 floats
  or a list of 3 floats.
  This finally makes the following possible:
    obj.setLocation (obj.getLocation())
    obj.loc = obj.loc
  Of course this applies to the other functions as well.
2003-10-05 11:17:14 +00:00
63e7c3e077 Exppython:
- Object.c: forgot to initialize an object->data pointer to NULL in Object_New
2003-09-23 03:02:54 +00:00
c0303d78b4 Exppython:
- Object: implemented getBoundBox and makeDisplayList methods
- NMesh and Object: small internal changes for nicer behavior
- Draw: added function PupMenu
- Docs: updated for the additions above
Auto build tiny fix: added the imbuf include dir to source/creator/Makefile.am
2003-09-20 03:40:16 +00:00
775f006bf1 Exppython:
- Window: implemented .SetCursorPos, .GetViewMatrix, .GetViewVector
- Lamp: .setDist was not in the methods table:
    Fix by new bpython developer Stephen Swaney
- Scene: .frameSettings was crashing Blender (pointed by jms)
- Added site dirs to sys.path (patch by Stephen Swaney)
- NMesh: small internal change (added pointer to parent object)
- Object: function NMesh_FromPyObject has a new arg: pointer to obj
- Docs: added docs for implemented functions, plus some more info
2003-09-18 00:54:43 +00:00
da773eee18 * Fix bug in Object.getEuler() and Object.setEuler() methods
I must have been looking outside when writing those functions :) They
  accessed the dloc values instead of the loc values. Doh
* Minor cleanup in Object.h
2003-09-17 18:15:51 +00:00
a09e5a7f2f Exppython:
- Window: added .GetCursorPos()
- Lamp: updated for NoDiffuse and NoSpecular modes
- Registry: new module to handle persistent data
- vector: made it correctly print only 3 values when vec->size==3:
    Fixes nmvert coords printed with a 4th 0.0 coordinate
- Text: fixed crash on startup (Python 2.3, linux):
    added definition of the Text pyobject earlier, in Types.c
2003-09-03 04:13:08 +00:00
65746ab10a Exppython:
- Updated two doc files
2003-09-03 04:04:17 +00:00
bb824b08b7 function PyArgsParse changed for PyArgsParseTuple by Stephen ( not so that sure...) 2003-09-02 20:13:43 +00:00
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
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
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
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
d24761807d changed a return value for Irix compiler 2003-08-07 13:20:25 +00:00
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
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
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
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
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
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
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
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
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
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