Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2008-04-17Patch from GSR that a) fixes a whole bunch of GPL/BL licenseChris Want
blocks that were previously missed; and b) greatly increase my ohloh stats!
2007-12-17Reverting to 2_2x BPYMartin Poirier
I was careful in selectively rolling back revisions, but if you've committed changes unrelated to BPY mixed with BPY changes, I might have reverted those too, so please double check.
2007-12-07miscellaneous edits from python development branch merged back into trunkCampbell Barton
2007-11-10==Python API==Campbell Barton
added .smooth setting to CurNurb's so you can do.... for curNurb in Curve.Get('foo'): curNurb.smooth = True
2007-06-29remove unneeded checks from the python APICampbell Barton
2007-06-16Python PyMethodDef supports single argument methods (METH_O) but was using ↵Campbell Barton
METH_VARARGS everywhere and getting the single args from the tuple. Use METH_O where applicable.
2007-05-25Many long standing memory leaks fixed in the BPY api.Campbell Barton
Data from Armature.c and logic.c still leaks. Mostly todo with PyList_Append adding a refcount and the bpython api not decrefing. Also added some features needed to fix a bug in mesh_clean.py (ob.pinShape and ob.activeShape)
2007-03-15removed unneeded dealloc functionsCampbell Barton
2007-03-15removed duplicate functionality, macro's and functions existed to check a ↵Campbell Barton
PyObjects type, now only use macro's
2007-03-06Python APIKen Hughes
---------- Converted CurNurb module to tp_getseters. Added patch #5761 to provide read access to NURB knot vectors.
2007-01-13Python APIKen Hughes
---------- Added CurNurb.recalc() method. I thought I had commited this before as part of a bugfix but obviously not. It allows control point handles be recalculated after changing a curve's bezTriples.
2007-01-04removed blender2cal3d.py, this is the second time where nobody has been able ↵Campbell Barton
to maintain this script to fix minor bugs, aparently the cal3d/soya guys maintain their own scripts anyhow. Adding switchDirection() for curNurbs. simple function and double checked to make sure its ok.
2006-04-16a little spring cleaning to remove some compiler warnings forStephen Swaney
implicit declarations, redundant redeclarations, missing initializers, nested externs and other cruft. Cleaned up includes and moved extern _Type decls from Types.h into Types.c since that is the only place where they are needed now. Did not touch Ipo.[ch] since work is on-going there.
2005-12-01Make curnurb.flagU and curnurb.flagV range check their inputs, plus makeKen Hughes
the documentation correctly describe how the attributes and methods work.
2005-10-16- Bugfix #3194: calling curve.appendNurb() with any number of float paramKen Hughes
other than 4 or 5 caused segfault (thanks for catching, Cam)
2005-09-14Memory management flag to behave better, as hinted by Ken Hughes.Toni Alatalo
Still not good, i.e. getting these when quitting: Error Totblock: 4 new bpytriple len: 60 0x8889bdc ... 'cause nothing frees them.. Changed the loop that parsed input args to PyArg_ParseTuple to have support for passing ints from Python too as the floats that are the coordinates. Didn't find PyInt_AsFloat and figured that this is an ok way anyhow. Changed the default handle mode from AUTO to ALIGN, which is the same as in UI and more useful at least for me. Little sanifying in CurNurb (this was done with Ton).
2005-08-09Big commit, had to rework lots of selection stuff so that thingsDaniel Dunbar
worked properly with modifiers. Needs more testing I am sure. No, honestly, I wasn't just cleaning for the hell of it, it was *necessary* (I would never do such a thing). Selection should work completely with cage options of modifiers now. - added DerivedMesh foreach functions to iterate over mapped verts/edges/face centers. These replaced some of the drawing functions and are more general anyway. Special edge drawing functions remain for performance reasons. - removed EditFace xs, ys fields - added general functions to iterate over screen coordinates of mesh/curve/lattice objects - removed all calc_*verts* functions that were used for storing screen coordinates in objects. they were recalc'd on the fly for most situations anyway, so now we just always do that. calc_*verts_ext was one of those calls that did dirty things deep down in the callstack (changing curarea and poking at matrices) - rewrote all vertex level selection routines (circle, lasso, bbox) and closest vertex routines (rightmouse select) to use the new system. This cleaned up the selection code a lot and the structure of selection is much easier to see now. This is good for future work on allowing modifiers to completely override the selection system. It also points out some discrepancies in the way selection is handled that might be nice to resolve (mesh vertex selection has fancy stuff to try to help with selecting overlapping, but it only works w/o bbuf select, and curves/lattices don't have at all). - had to remove ton's code to move Manipulator to cage location, this is not reliable (can come up with a different method if requested) - as it happens BezTriple.s and BPoint.s are basically available to be removed, just need to rewrite editipo code that still does background calc of screen coordinates - MVert.{xs,ys} are still around because they are abused in some places for other info (not sure if this is safe actually, since they are short's and the mvert limit went up). And did I mention this commit is comes out to -305 lines? Well it does.
2005-07-18Header file clean up and warning fixesJoseph Gilbert
- Mostly this cleans up the #includes and header files in the python project. - Warning fixes are mostly casting issues and misc fixes. General warning clean up. - #include Python.h MUST come as the first include to avoid the POSIX redefine warning in the unix makefiles - fno-strict-aliasing flag added to makefile to fix a unavoidable type punning warning in types.c
2005-06-17My patch to BPy's curve module (applied by stivs) had a small mem leak. ↵Martin Poirier
Fixing now.
2005-06-13Patch from Martin Poirier.Stephen Swaney
Misc bpy Curve fixes and updates, includes bugs #1687 and #2637
2005-05-12bugfix: #2254 Curve.appendPoint() gives segfault in PySequence_Check().Stephen Swaney
Argument tuple not built correctly for CurNurb_appendPointToNurb().
2005-04-22Fix previous fix by moving some code around to try to please everyone.Stephen Swaney
or at least their compilers. let me know what breaks.
2005-04-22fix compiler error with gcc 4.0. mismatched declarations.Stephen Swaney
2005-04-17More Curve Module features: access to the attributes flagU and flagVStephen Swaney
in a CurNurb object. Contributed by Gergely Erdelyi (dyce).
2005-02-09BPython:Willian Padovani Germano
- applied Campbell Barton's patch for access to Oops location and selection of materials, mesh data and objects, slightly modified. Thanks, Campbell; - got rid of warnings in many files, hopefully not introducing any other during the process. Mostly this was done: 1) new EXPP_incr_ret_True/False functions were added and used instead of "Py_INCREF(Py_True/False); return Py_True/False;". Currently at least the functions use the fact that PyTrue/False == 1/0 and use 1 and 0 to avoid the warnings. 2) Filling of certain types structs got 0's added for all not defined data and methods. This is surely Python version specific, since these structs can change size and content at each major version number Python update.
2005-01-13New methods: Curve.isCyclic(), CurNurb.isCyclic() for checking if curve is ↵Stephen Swaney
cyclic ( closed ). Both methods are boolean. Patch contributed by Toni Alatalo. Thanks.
2004-10-07Another step in the Big Bpy Cleanup.Stephen Swaney
- move static declarations and data definitions out of headers. the BGL module still need cleaning. - move declarations out of modules.h and into appropriate .h files. modules.h still exists as a container for the few modules that need to #include almost everything. - all files now have a $Id tag and have been formatted by indent there are no changes to executable code. pre-commit versions are tagged with bpy-cleanup-pre-20041007 for the sake of paranoia.
2004-09-26Another round in the Great BPy Cleanup:Stephen Swaney
Run everything thru indent to cleanup spaces vs tabs. Clean up some of the comments by hand. BGL.c was not touched due to all that macro wackyness. There are no functional changes to the code. Pre-indent versions of source are tagged with tag bpy-cleanup-20040925 , just in case.
2004-07-29some code cleanup. minor bug fixage: don't try to free null ptrs.Stephen Swaney
accidentally ran CurNurb.c thru indent utility Doh!
2004-07-22New Curve method Curve.appendPoint( numcurve, newpoint ) to addStephen Swaney
points to a Curve. New supporting module CurNurb to provide access to the curves in a Curve and their associated points. Curve module now supports Python iterator and sequence protocols. This allows typical python programming idioms using 'for' statement and the [] operator. # example 1 for curve in a_curve: for point in curve: print point #example 2 curnurb = a_curve[0] curnurb.append( [1,1,1,1] ) Still under construction. Epydoc will follow.