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-18Used GET_INT_FROM_POINTER to get rid of many warnings that only occurred ↵Campbell Barton
with 64bit os's Also use Py_ssize_t which we might need to define for older python's
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!
2008-03-11fix for cam.setScale(), cam.setClipStart(), cam.setClipEnd() andCampbell Barton
cam.setDrawSize(), they would raise errors when setting ints. but used not to. better tooltips for Uv Stretch
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-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-28windows needed M_PI defined.Campbell Barton
2007-04-28removed doc_browser.py - since it covers ~half the BPY api, not documenting ↵Campbell Barton
any of blenders data types. replaced with a help_bpy_api.py, that opens a web browser at the Blender Python API page. Camera.c - added a veriable .angle to camera, same as .lens but adjusts the camera angle in degrees (like the D button) export_fbx.py - use the the camera angle property. object_cookie_cutter.py - use PointInTriangle2D rather then own function. buttons_shading.c - added OB: and tooltip to object world mapping. interface_draw.c - (Simple theme) text buttons looked exactly like normal buttons (more confusing when they had no text), made the text and ID buttons render inset so you can tell them apart.
2007-04-27added blender-camera export to fbxCampbell Barton
py api was massing shiftX/Y
2007-03-23patch 5341 by JuhoTon Roosendaal
This adds option to show camera angle instead of camera lens value. (Complete revised patch...)
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-14made all python types that can do .__copy__(), also do .copy()Campbell Barton
added copy function to lamp, texture and ipo types
2007-03-11Remove gcc compiler warnings from various files.Ken Hughes
2007-03-11made all data adding functions accept a name such as add_mesh or add_curve, ↵Campbell Barton
previously only some datatypes adding functions accepted a name. also updated the Bpy.py epydocs
2007-03-11moved python functions that deal with blender libdata into gen_library.c ↵Campbell Barton
from gen_utils and BPY_interface small cleanup, removed unused functions and explicetly cast pointers..
2007-03-08BPython APICampbell Barton
added a function - GenericLib_assignData for assigning blender data, to assign an ipo to a camera or world to a scene for instance. Using this function removed ~300 lines of code. also fixes user count error in some places that didnt check. also made it possible to clear the colorband by setting it to []
2007-03-02various warnings fixes - mostly casting and initialization issuesJoseph Gilbert
2007-02-25World.cCampbell Barton
* moved to getseters with id attribs * added 2x missing checks for list size when parsing args. Text3d.c * use getseters with id attribs * added a comparison function
2007-02-25made attributes (name, property, users, fakeUser, lib) into functions all ↵Campbell Barton
python types can use. removed a lot of code duplication when moving to this. Also removed unused functions GetMaterialByName(), same for Mesh, Object, World etc.
2007-02-23BPython APICampbell Barton
* Added data.lib attributes to almost all data types, (except for Text3d and NLA) This is None or the path of the library as a string. * Main was giving a warning, Include Curve.h rather then CurNurb.h * Added Library.LinkedLibs(), returns a list of externaly linked libs.
2007-01-22Looking to see why SGI wont compile this.Campbell Barton
fixed some getsetattr args that wernt cast to (void *) this is now consistant with Object.c - but Im not sure why SGI has trouble.
2007-01-12error, camera scale couldnt be set. bpyrender now sets ortho properlyCampbell Barton
2006-12-27renameing datablocks was imposing a name limit on the python side.Campbell Barton
This isnt needed because the limit is alredy being set by rename_id() some other minor changed- use None returning maro
2006-12-26Camera.c refactor, moved to getsetattrs. deprecated get/set functions. and ↵Campbell Barton
added access to all camera settings. cam.type now uses 'ortho' and 'persp' rather then 0 and 1 group.c and object.c, minor cleanup
2006-12-24replaced id->us++ with id_us_plus(id); so any indirect libdata isnt lost on ↵Campbell Barton
reload. added camera.dofDist to the python camera module
2006-08-16Added python __copy__ to Camera, Lattice, Metaball and World.Campbell Barton
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-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-17Some of the setattr functions created a tuple to pass to the set* functions ↵Martin Poirier
and didn't decref'ed it properly, "leaking" memory. Commit approved by stivs.
2005-05-27BPython:Willian Padovani Germano
- Fix for bug #2621 reported by Yann Cointepas (material.setMode didn't accept integer param, only strings, making it inconsistent with material.getMode): http://projects.blender.org/tracker/index.php?func=detail&aid=2621&group_id=9&atid=125 Applied patch #2626 by Ken Hughes to both Material.c and doc (Material.py): http://projects.blender.org/tracker/index.php?func=detail&aid=2626&group_id=9&atid=127 - Small C doc strings update I forgot to add before, for Render slinks (reminder about Render slinks docs also by Ken). Thanks both -- btw, Ken Hughes has contributed considerably improving bpy documentation and fixing bugs for this release.
2005-04-21BPython:Willian Padovani Germano
- based on a request by Campbell (he also provided a patch for scene.Layer) access to layers was improved a little, keeping the old method (ob.Layers is a bitmask) and adding the nicer one (ob.layers is a list of ints). Done for objects and scenes. House-cleaning: .Layer was renamed to .Layers (actually just using strncmp instead of strcmp, so both work, same done for Window.ViewLayers). - finally committing patch by Ken Hughes to let .clearScriptLinks() accept a parameter (list of strings) to clear only specified texts. - doc updates and fixes (JMS reported a problem in nmesh.transform() example code). Thanks all who contributed.
2005-03-27New Bpy method: Camera.insertIpoKey()Stephen Swaney
Contributed by Johnny Matthews (guitarGeek)
2005-03-09big warning hunt commitJean-Luc Peurière
lot of casts, added prototypes, missing includes and some true errors
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-02-09BPython:Willian Padovani Germano
- NMesh: made nmesh.update accept an optional 'vertex_shade' param to init vcols with shading info, like when you enter vpaint mode or press the relevant "make" button for a mesh without vcols. This is still a test, the functionality was requested by Manuel Bastioni for the SSS script they are working on: http://www.dedalo-3d.com/index.php?filename=SXCOL/makehuman/articles/subsurface_scattering_in_python.html - sys: made makename() accept files with max FILE_MAXDIR+FILE_MAXFILE name length, should fix #2192. Was only FILE_MAXFILE, a mistake; - Image: added .setFilename(), contributed by Campbell Barton; - Camera: added camera.get/setScale for the new param added by Ton for ortho cameras. Requested by Jean-Michel Soler for the Texture Baker script; - related doc updates.
2005-01-13BPython:Willian Padovani Germano
- patch by Jonathan Merritt: new function Blender.Draw.Image() + its doc; - patch by Campbell Barton: .users attribute for many types; - tiny internal change in nmesh.hasVertexUV() method. Thanks to Jonathan and Campbell for the patches and the patience!
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-03New scripts:Willian Padovani Germano
- hotkeys, obdatacopier and renameobjectbyblock, all from Jean-Michel Soler (jms); - bevel_center by Loic Berthe, suggested for inclusion by jms; - doc_browser, by Daniel Dunbar (Zr) Thanks to them for the new contributions! (I included doc_browser at 'Misc' because only users interested in script writing would actually use it, but it could also be under 'Help'. Opinions?) BPython related: - Added scriptlink methods to object, lamp, camera and world. - Object: added object.makeTrack and object.clearTrack (old track method). - sys: made sys.exists(path) return 0 for not found; 1 for file, 2 for dir and -1 for neither. - doc updates and fixes. - made ONLOAD event work. G.f's SCENESCRIPT bit was being zeroed in set_app_data. - Blender: updated functions Load and Save to support the builtin importers and exporters besides .blend (dxf, videoscape, vrml 1.0, stl, ...) - Draw: added mouse wheel events. - Scene: added scene.play to play back animations (like ALT+A and SHIFT+ALT+A). Makes a good counter, too, when the 'win' attribute is set to a space that doesn't "animate". The scene.play() addition and the fix to ONLOAD scriptlinks is part of the work for a Blender demo mode. It already works, but I'll still add support for Radiosity calculations and fix a thing in main(): it executes onload scripts too early (BIF_Init), giving funny results in alt+a animations and renderings when firing up Blender. Loading after the program is up has no such problems. When I finish I'll post examples of demo mode scripts.
2004-06-07Replace deprecated methods from old api:Stephen Swaney
PythonReturnErrorObject PythonIncRef Fix some compiler warnings about missing initializers in method tables.
2004-03-31more housekeeping. move static declarations and definititions out of .h files.Stephen Swaney
tidy up initializers and c++ style comments.
2003-10-29Exppython:Willian Padovani Germano
- Minor tweaks related to ipos and Added Object_setIpo and Object_clearIpo to Object.c - Updated docs
2003-10-28Exppython:Willian Padovani Germano
- Small fix in NMesh.c - Updates to ipo related methods in Camera, World and Material - Doc updates
2003-10-26iaccess to the IPOs of a Camera, a World, or of a MaterialJacques Guignot