Commit Graph

1099 Commits

Author SHA1 Message Date
Ken Hughes
2ee94cbbac ===Python API===
New keyword parameters for Mesh.faces.extend() method:
  * ignoreDups: turns off checks for duplicate faces in the input list and
    existing mesh faces.  Intended for constructing new meshes where the
    faces are known to be unique.
  * indexList: makes the method return a list of new faces indices, which
    can be used to index new faces to add other attributes like color.  If
    duplicate faces are removed, None is placed in their list slot.
2006-08-24 20:02:22 +00:00
Ken Hughes
de762ae555 ===Python API===
Bugfix: Mesh.faces.extend() would incorrectly add duplicate faces in some
circumstances.
2006-08-24 19:28:36 +00:00
Ken Hughes
a217e546a4 ===Python API===
Fix return value problem in Mesh_getFakeUsers(): compiler warning in this case
was indicating a real bug.
2006-08-22 18:08:57 +00:00
d6d2d6f063 added fakeUser property to mesh (will need to add to all other library datablocks too)
and added __copy__ to quat and euler types as well as updating the docs.
2006-08-22 09:13:44 +00:00
Ken Hughes
18ab4ff62d ===Python API===
Fix various typos in Modifier, IpoCurve and Armature docs.
2006-08-21 19:11:43 +00:00
Ken Hughes
e5be894a29 ===Python API===
Bugfix: unary minus on a point object should not modify the original point
data but return a new point.
2006-08-21 14:36:11 +00:00
0925d80cfa removed the unpopular 'ed' functions, and added .copy() to Mathutils vector and matrix
(inverted, normalized, transposed)

making an inverted copy of an objects matrix used to be.. (2.42)

  imat= Mathutils.Matrix(ob.matrixWorld)
  imat.invert()


# inverted.. I added but now removed

  imat= ob.matrixWorld.inverted()

# with copy (current functionality)...

  imat= ob.matrixWorld.copy().invert()
2006-08-21 13:52:32 +00:00
9334048b60 Bugfix #4906
Python API bug: Importing ipo curves did a memcpy() on a 1 item too large
data block. I wonder how IpoCurve_append() would have ever worked...
2006-08-20 11:02:31 +00:00
2580a91a8f Added another example for Curve in the epy docs 2006-08-19 11:00:11 +00:00
8a9839fdef Added an example to Modifer.py epy docs 2006-08-18 01:56:18 +00:00
Ken Hughes
1e8033f45c ===Python API===
Patch from jms: adds attributes effect.disp and effect.staticStep.
2006-08-17 21:39:49 +00:00
Ken Hughes
66bd3fbd18 ===Python API===
Bugfix #4886: deleting a bone would disconnect bones when it shouldn't have.
Thanks to Michael Ward (easybreasy) for locating the problem.
2006-08-17 21:36:56 +00:00
314fbb4ff5 Added Armature.New() 2006-08-17 07:14:29 +00:00
Ken Hughes
a680d87902 ===Python API===
Patch to Mesh and NMesh APIs to bring FaceModes dict into sync (thanks jms).
2006-08-16 19:20:37 +00:00
9ef3e8092b Added python __copy__ to Camera, Lattice, Metaball and World. 2006-08-16 14:06:24 +00:00
b92837c7c3 Object.c - Fixed dupli variable flags 2006-08-16 06:19:08 +00:00
Ken Hughes
816da5bb6f ===Python API===
Change documentation of ProtectFlags dictionary from SIZE to SCALE.
2006-08-15 13:16:10 +00:00
8e7095a464 Added __copy__ to armature, material, curve, group 2006-08-15 11:24:08 +00:00
2fc1f4ac42 - updated python api doc string for Object_SetDrawMode() 2006-08-15 11:06:00 +00:00
Ken Hughes
0a3f16304f ===Python API===
Long-awaited refactor of Object module.  Should not break backward
compatibility -- at least it didn't in my tests -- but I'm requesting users
to put it through heavier testing and report problems through the bug
tracker.
2006-08-14 18:01:28 +00:00
Ken Hughes
a01a0e6256 ===Python API===
Fix compiler warnings in Sound.c and Effect.c.
2006-08-14 16:29:11 +00:00
e341a4e1f4 Patch: Constraints to Limit Transforms (#4662) by Joshua Leung (aligorith)
This adds three new constraints to limit the range of location, rotation and scaling values.
2006-08-13 14:18:15 +00:00
3526235446 Added .radius support for curves, and material's lightGroup 2006-08-13 10:13:19 +00:00
515fe83f97 added __copy__ to mesh and object types, fixed a monor bug in setTexMesh and made Mesh.c use G.totMesh properly. 2006-08-13 01:51:47 +00:00
7440aba482 Compositor: finished work on node "File Output".
- It saves a file with indicated type on each change, with number
  appended denoting the current frame (like ANIM saving).
- Output filename button supports relative paths ("//")
- Shows optional preview image too
- For now, added a print on each file save as feedback

To make this option work nicely, changed the BKE_makepicstring() function
to have less globals inside, so it is more generic. Todo: allow amount of
digits in filenames to be set (to support files like tmp_123456.jpg)
2006-08-10 10:38:50 +00:00
a5d0af3b4f Type in effect docs, edited some of the object docs also. 2006-08-09 01:53:34 +00:00
49e778ed7f Commiting JMS's patch for particles with modifications. 2006-08-09 01:37:17 +00:00
b44ae44c72 Made RotationMatrix accept values outside 360,
added object.type to be used instead of .getType()
2006-08-08 14:34:38 +00:00
531cd7c0fc Removed debug line added when testing for matrix memory leaks that messed up matrix.invert()
updated bvh import which was modified to account for that. as well as other minor changes.
2006-08-06 22:47:57 +00:00
aba435cbc1 Added setName and setFilename as well as making name and filename writable. 2006-08-06 10:47:12 +00:00
aaec000545 Made Font.c's pack/unpack work like Sound.c's 2006-08-06 09:51:40 +00:00
80f5a232d9 modified Text3d.Font
* Renamed Text3d.Font.New() to Text3d.Font.Load() since New was acring like load anyway.
* Text3d.Font.Get() was just calling Text3d.Font.New(),
  made it get from a name or return a list of all fonts.
* implimenetd getsetattrs
* removed references to bones in the error messages
* added users variable
* renamed name to filename and added access to id.name
2006-08-06 07:34:25 +00:00
6a48654cce Added a octree implimentation for doing fast locational vertex lookups. 2006-07-31 13:28:00 +00:00
00a6a79899 added the texmesh to Mesh property to mesh. 2006-07-31 12:57:46 +00:00
cac265f7b6 faces faces added had vertex colors set to black.
use default_tface(tface) on all extended faces when tfaces exist.
2006-07-28 07:08:27 +00:00
eced755afe added a slot in the uv/image's "Image" menu for pyscripts. 2006-07-28 02:51:44 +00:00
e360cbf62b Updated epydocs to reflect changes in the API
Also made links to wikipedia pages explaining what a these functions do mathamaticaly
2006-07-27 12:23:08 +00:00
403b62fbcf matrix .inverted() and .transposed() didnt work because the matrix was wrongly copied.
2 more memory leaks in matrix multiplication fixed.
2006-07-27 02:33:54 +00:00
b227c98c44 Addition to Mathutils
vec.normalized()
 mat.inverted()
 mat.transposed()
 made vec/float possible

 normalize/invert/transpose now return None because they modify the data in place.
 use the ...(ed) versions to return a modified copy.


Fixed Memory leaks from not decreffing PyFloat_AS_DOUBLE from these python functions...
(found when testing above functions)
  ob.rbMass
  ob.rbRadius
  matrix.determinant()
  quat*float
  vec*float
  matrix.transpose()
  EXPP_setModuleConstant

Checked all instances of PyFloat_AS_DOUBLE so I dont think there are any mroe leaks there.
2006-07-27 01:18:21 +00:00
Ken Hughes
1df2871f2f ===Python API===
Multiplication of 3D vectors by 4x4 matrices converts the vector to 4D but
did not make the vector homogenous.  Fixing that so the translation part of
the matrix will also be applied.
2006-07-26 12:34:56 +00:00
Ken Hughes
5618de6e1e ===Python API===
Fix typos in Object epydocs.
2006-07-26 03:06:33 +00:00
c4429fb796 Added a note in the object docs about object data and editmode
removed mirror_bone_weights, as it was a double another script, contacted the author and hes ok with it.
2006-07-26 00:41:52 +00:00
ad67ad845f Printing the BezTriple was only printing it in 2D, since all curves have a 3d vector, even of its a 2d curve we may as well print 3d all the time. 2006-07-25 15:43:15 +00:00
fa5ead9ea5 Fixed bullet formatting and explained where some constants were stored (had to look at source to see, so may as well doc) 2006-07-23 15:16:15 +00:00
bd8cd6a38c noticed my BVH test import blender was 30meg+ turns out to be
python new action function (M_NLA_NewAction) was making actions with 2 users, so that acrions would never de-allocated,

alloc_libblock alredy assigns a user, so just dont assign another from M_NLA_NewAction.
2006-07-22 14:22:03 +00:00
60f3a33855 Added a note explaining the poseMatrix space and how to get the worldspace location. 2006-07-20 06:50:23 +00:00
Ken Hughes
b85c3fb1de ===Python API===
Bugfix #4728: passing an interator sequence to me.faces.delete() caused a
crash; check explicitly for lists or tuples.
2006-07-19 14:35:22 +00:00
Ken Hughes
e194ccce5e ===Python API===
Bugfix: using Image.GetCurrent() and image.save() on the "Render Result"
image could result in a segfault since image->ibuf was NULL.  This change
forces ibuf to be created if necessary.

NOTE: the Image API needs additional methods/attributes for image.save() to
really do anything useful.  The image type, quality, etc., don't seem to be
gettable/settable so the resulting image file may not be in the format the
user would like.
2006-07-18 21:02:15 +00:00
Ken Hughes
a33bd50108 ===Python API===
Bugfix #4690: BonesDict_repr() had a string overflow for really complicated
armatures.  Added a string length check and terminate before overflowing.
2006-07-14 14:48:45 +00:00
Stephen Swaney
aa42dc28f1 more spell checking. 2006-07-12 14:27:13 +00:00