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
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-09-18A user submitted a BVH file that took a long time to import (I didnt end up ↵Campbell Barton
finishing since it was so slow) this is mainly because adding pose keyframes recalculates every handle so importing became increasingly slow. added a 'fast' argument to insertkey that python api's insertPoseKey can make use of since it alredy accepts a 'fast' option. The ~4450 frame, 31 bone BVH imports in ~108sec now Seperated editmode switch statement in space.c's event handling, if editmode is disabled, or the images is a render or composite, UV editing operations are ignored. In previous releases it has given an annoying warning if selecting or scaling is attempted when out of UV/Face mode.
2007-09-17== Action Editor - Copy and Paste Tools ==Joshua Leung
Now it is possible to do Copy+Paste in the Action Editor, like in the IPO Editor. There are two new buttons in the Action Editor header for this, using the familiar icons. * To copy... Select the keyframes you wish to copy, and the channels that they occur in (except for ShapeKey mode, where it is not possible to select channels). Click copy button. * To paste... Place the current frame where you want the first of the keyframes from the buffer is to be pasted. Select all channels you wish the keyframes to be pasted into. Click paste button. Currently, keyframes are only pasted into 'compatible' curves (i.e. LocX keyframes can only go to LocX, and so on). This may change after user feedback, if this is found to be too restrictive. == Code Changes == I've made a few changes which allow this code to be nicer. * renamed insert_vert_ipo to insert_vert_icu, as that represents its actual purpose better (and changed all occurrences I could find) * created a new function, insert_bezt_icu, which does the actual inserting of provided BezTriple data to a given IpoCurve * recoded insert_vert_icu to use this new function, and also the IPO-Editor keyframe pasting (i.e. pasting in Editmode)
2007-07-12From stableCampbell Barton
Revision: 11237 http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=11237 Author: campbellbarton Date: 2007-07-12 13:05:31 +0200 (Thu, 12 Jul 2007) Log Message: ----------- PyObject_IsTrue was missing a check for an error return value in many cases.
2007-07-01replace PyInt_CheckExact with PyInt_Check, same for floats and strings so ↵Campbell Barton
subclass and C/subtypes work. was reported as a bug a while ago.
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-28more memory leak fixes, though only a few are likely to happenCampbell Barton
2007-04-05Python APIKen Hughes
---------- Fix memleak caused by missing Py_DECREFs (good catch, Campbell).
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-01-13driverExpression - strcpy on wrong type (my bad) fixed.Campbell Barton
added .sel bool for Ipo curves.
2006-12-25PyAPI driverExpression:Campbell Barton
added "ipocurve.driver = 2" to set the curve to use driver python expressions. added ipocurve.driverExpression - the string to run.
2006-10-06added comparison function to many python types so you can do == and =!Campbell Barton
2006-08-20Bugfix #4906Ton Roosendaal
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-04-22===Python API===Ken Hughes
New Ipo and IpoCurve API. Ipo and IpoCurve objects support the [] operator, for accessing the curves of a particular Ipo and for accessing the value of an IpoCurve at a specific time. Both modules were also "tp_getset"-ified. Also, code for an alternative method (Antont wanted this) of accessing curves via Ipo attributes is included for now, for people to try and see if it's actually preferable to the Ipo [] operator. These are all new additions; nothing was intentionally removed from the API. If you find the something in the existing API has changed, let me know.
2005-12-17-- Bugfix #3617; addBezier() was not initializing all the attributes forKen Hughes
a the beztriple, so things like the hidden and handle select states were set to random values. Added a beztriple.hide attribute so that the hide attribute can be set/cleared from the BPy API.
2005-12-06Added some extra parameter checking in Ipo driver code.Ken Hughes
2005-11-28-- Bugfix #3458: keyblock.getData() was getting vertex data from keysKen Hughes
incorrectly, including wrapping curve data as BezTriples. Needed to make a change to beztriple module so we could more easily create a "thick" BezTriple object similar to Blender.BezTriple.New(). The change to BezTriple.h pointed out some dead code in the Ipocurve module that could be removed.
2005-11-17-- fix small problem with Ipocurve.recalc(); recomputed handles but did notKen Hughes
re-sort control points (also added reminder in BezTriple doc that script users need to call recalc themselves)
2005-11-07- warning fixesJoseph Gilbert
* various warnings the python api is putting out
2005-10-26Python API AdditionsJohnny Matthews
New Ipo Drivers access in IpoCurve key.getChannelIpo(index) returns the ipocurve of a given shape index Docs included for usage :)
2005-10-10Stupid me! Committed in wrong console with wrong dir... here's the rest ofTon Roosendaal
all files for the Ipo/Action/NLA makeover...
2005-09-28Recommitted this commit yesterday, was apparently done in the wrongTon Roosendaal
directory... so the slowdown was still evident! Maintenance commit; - *Giant* speedup for LMB frame-dragging in ipo/action/nla windows. It was calling a routine that accessed frontbuffer drawing.... a very old patch for SGIs even! :) - Prepared code for support of unlimited Shape keys - Curve objects didnt draw correct for selection-outline option
2005-08-29MEM_freeN() and MEM_mallocN() should not have been redeclared in thisChris Want
file.
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-05-24updates to doc strings in code and doc from Ken Hughes.Stephen Swaney
add alias .recalc() for IpoCurve.Recalc() to match api standard.
2005-04-24fix overlooked compiler warning. sheesh.Stephen Swaney
update contributor names.
2005-04-24New IPO methods.Stephen Swaney
Ipo.delCurve( curve_name ) deletes named curve from IPO. Ipocurve.delBezier( int ) deletes point at index from Ipocurve. Contributed by Ken Hughes (khughes). Thanks!
2004-11-30Scripts:Willian Padovani Germano
- Fixes by Jean-Michel Soler: mod_ai2obj.py, mod_svg2obj.py; - Fixes by Campbell Barton: obj_import.py; - Small fix to mod_meshtools.py (fixes bug #1605: http://projects.blender.org/tracker/?func=detail&atid=125&aid=1605&group_id=9); - Updates by Jean-Baptiste (Jiba) to his blender2cal3d.py; - Updates to all his import / export scripts (added doc data) by Anthony D'Agostino; - Update to off_import: support for uv data, by Arne Schmitz. BPython: - Removed Object.get and .getSelected (deprecated long ago, we use .Get and .GetSelected) -- fixes #1861: http://projects.blender.org/tracker/?func=detail&atid=125&aid=1861&group_id=9 - Applied patch by Michael Reimpell: quat.c - fix for wrong initialization with newQuaternionObject; Mathutils documentation improvements. - Stani reported a wrong return msg in IpoCurve.Get (that is unimplemented). Thanks to all coders mentioned above!
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-09-18One small part of the Great Bpy Code Cleanup.Stephen Swaney
Add cvs $Id tag to files
2004-07-27Nathan's huge ipo patch.Ton Roosendaal
- now more than 31 channels possible for ipos - added lotsa new channels all over - Texture block has ipo now too - recoded getname_ei functions (Will ask nathan to give release log info when he's back!)
2004-06-06patch for bug #1347. IpoCurve.evaluate() missing/disappeared.Stephen Swaney
Contributed by Philip Wainwright.
2004-04-29fix for #1123 by Roland Hess (harkyman)Stephen Swaney
Testing has not convinced me this is a complete solution to the Ipo Curve handle issue, but it does seem to make things better for curves created via python. We will probably need to revisit this, especially if we expose the curve handles in the bpy interface.
2004-04-03Bug fix provided by Anders Nilssen.Michel Selten
TotIpo was never meant to be exposed in the Ipocurve object. It's a variable to store the number of IPOs.
2004-04-02Python API fixes. Provided by Anders Nilsson (breakin)Michel Selten
* Typo fixed in IpoCurve_getInterpolation. 'Bonstant' was used, while 'Constant' is what we want. * IpoCurve.getName now also returns curve names for action-IPOs. * Update to the Object module: Added obj.getTimeOffset() and obj.setTimeOffset() methods Anders Nilsson has promissed me to provide some updated Python API docs :)
2004-03-29General housekeeping and cleanup. Move static declarations andStephen Swaney
data definitions from .h files into corresponding .c files. Blame zr for this since he's the one who pointed out that our bpy headers were a mish-mash of stuff that belonged in the .c files! In a nutshell, the headers should contain the declarations necessary to use a module or class. The implementation files ( .c in this case ) should contain statements that allocate storage ( definitions in the C sense ) and executable code. When used at file scope, the keyword 'static' means "don't tell anyone else about this". Since headers describe a public interface, static declarations and definitions belong in the implementation files. The net result of all this is that after stuff has moved out into the .c files, the .h files are empty or mostly empty. I didn't delete them since there seem to be some public declarations and because I did not want to cause too much disruption at one time. Time enough for that later!
2004-03-05Fix for bug #1014Stephen Swaney
In IpoCurve.addBezier() method, set handles of newly added point to type Auto. Fix provided by Roland Hess (harkyman).
2004-01-03BPython:Willian Padovani Germano
- Fixed small typo in doc file Object.py, reported by user Bill. - Fixed bug #803: Bug #803's Summary: print, type() or BezTriple broken Trying to print type(BezTriple) was crashing Blender because that type wasn't being initialized to PyType_Type. The other problem is that the getName method for ipocurves only works for object ipos. A warning was added for when users try to use it with other blocktypes, we'll later update ipo related stuff in bpython to work for all types.
2003-12-19Bug fixes (sigh...)Jacques Guignot
2003-11-24Fixed two minor warningsJacques Guignot
2003-10-29modified the print functionJacques Guignot
2003-08-05removed unuseful function calls in BezTriple.[ch]Jacques Guignot
general cleaning of Ipocurve.c Ipocurve.h Ipo.h Ipo.c updated doc
2003-07-21reincorporation in the cvs of modifications which had been lost.Jacques Guignot
2003-07-21Some manipulations of the keyword 'static' to getChris Want
blender to compile
2003-07-20* removed the #include .c statements and replaced them with corresponding .hMichel Selten
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-20Exppython:Willian Padovani Germano
Still compilation problems, wrong type returned in a function.
2003-07-19Nex modules added to keep a minimal compatibility with 227 apiJacques Guignot