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-06==Python API==Campbell Barton
Bugfix, Space Handlers could crash blender when used with armatures. also fixed some possible bugs in other areas.
2007-10-26==Python API==Campbell Barton
layerMask access for bone and armatures Window.PoseMode() similar to Window.EditMode()
2007-08-27armature weakref evilness again, using editmode in python is not the best.Campbell Barton
replacing PyWeakref_NewProxy with PyWeakref_NewRef fixes this problem. list(bpy.data.armatures) # would mess up weakrefs [arm for arm in bpy.data.armatures] # didnt.
2007-08-25getting the armature twice would cause a weakref error and crash after 2-4 ↵Campbell Barton
runs.. data = arm_ob.data bones = arm_ob.data.bones.values() Fixed by returning existing armatures if they exist in the weakref list. tested with FBX and BVH support.
2007-08-01armature weakref fix from stable, Curve.c removed unneeded cruftCampbell Barton
2007-05-26Fix segfault in PyBonesDict_FromPyArmature() caused by uninitialized memory.Ken Hughes
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-05-21=== Bugfix ===Martin Poirier
Coverity bugfix (missing NULL check) and ref counting errors. (on module constants, so not really leaking, just not good.)
2007-03-26Python APICampbell Barton
made all libdata hashable - use the object type,name and lib for the hash. added .tag to libdata so we can test if data's been processed without using dictionaries added libdataseq.tag (write only) setting the tag flag (which can always be dirty)
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-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-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-02-22renamed posebone.ik to hasIK, removed unused code, made the function name of ↵Campbell Barton
Armatue's py object from Blender object consistant with others.
2007-01-31Bugfix for #5000Stephen Swaney
Setup for Armature weak ref list was missing from some places where we execute py code. This confused the interpreter and gave random attribute/tuple parse errors. Changed name of weak ref list to "__arm_weakrefs" to avoid name collision with user variables.
2007-01-31=Python bugfix= Joseph Eagar
Armature code had missing NULL pointer check that crashed when used in pydrivers.
2007-01-25Needed an extra header to find offsetofKent Mein
Kent
2007-01-25Bug fix for:Joseph Gilbert
[ #5000 ] Changin EditMode in Script wrecks memory Armatures create weakreferences in __main__.__dict__. When Window.Editmode is called, the weaklist it iterated over and armatures are updated.
2007-01-22creating new objects fromCampbell Barton
ob = scn.objects.new(arm_data) didnt work. Also added docs to Pose - that make an armature, add an action and add pose keyframes
2007-01-16== Armature Joining Bugfixes ==Joshua Leung
Since 2.40 (and a few pre-releases around then), armature joining has not worked correctly. Constraints and other attributes of bones in posemode (IK DOF limits, transform locks, custom shapes, etc.) were not preserved on the armature(s) that were joined onto the last selected armature. This was a serious production problem, as it meant that you could not easily add pre-made rig segments and merge them with the rest of your rigs without having to redo all the constraints. After a few attempts, I've finally managed to fix this. All constraints and parenting relationships get name corrections for the post- merge armatures. Action channels in actions don't really get any corrections yet unless the action is being used by an Action Constraint. Python-API people: beware, I may have broken something in this commit.
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-23Arnaure.Get() now raises an error when the name dosnt exist. added warning ↵Campbell Barton
in docs. Image - added img.fields, img.fields_odd, img.antialias, also updated the docs. replaced Py_BuildValue with faster list creation for getPixel functions.
2006-12-17added fakeUser and users to more pytypesCampbell Barton
2006-10-06added comparison function to many python types so you can do == and =!Campbell Barton
2006-08-18===Python API===Ken Hughes
Bugfix #4886: deleting a bone would disconnect bones when it shouldn't have. Thanks to Michael Ward (easybreasy) for locating the problem.
2006-08-17Added Armature.New()Campbell Barton
2006-08-15Added __copy__ to armature, material, curve, groupCampbell Barton
2006-07-14===Python API===v2.42Ken Hughes
Bugfix #4690: BonesDict_repr() had a string overflow for really complicated armatures. Added a string length check and terminate before overflowing.
2006-04-24warnings cleanup for the python project on windowsJoseph Gilbert
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.
2006-03-06quick fix for Python armature CVS making bones with no layers, therefor ↵Campbell Barton
being invisible. Should realy have Bone/Layer access through python.
2006-01-28Final merge of HEAD (bf-blender) into the orange branch.Chris Want
Here are my notes on things to look out for as potential problem spots: source/blender/blenkernel/intern/displist.c: + is initfastshade(void) supposed to be empty? I had to make it empty to get the merged tree to compile. source/blender/python/api2_2x/Armature.c: + went with the version that had Armature_getLayers() source/blender/python/api2_2x/Object.c + went with the version of Object_getPose() from bf-blender. (#ifdef 0-ed the other version) source/blender/python/api2_2x/Pose.[ch] + had problems linking due to no Pose_Init() ... copied these two files straight from bf-blender. source/blender/src/drawview.c: + view3d_panel_properties() had things shifted a few things shifted a few pixels, otherwise, things were painless source/blender/src/splash.jpg.c: + went with bf-blender version (orange is dead) source/gameengine: + went with bf-blender version -- does not compile due to IMB_rect* stuff, Ton should look into this.
2006-01-16*fixes global redefinitionsJoseph Gilbert
- added some extern keywords
2006-01-14fix previously fixed error msg.Stephen Swaney
2006-01-13bugfix: #3738 Armature bones returns none instead of key errorStephen Swaney
BonesDict was returning None instead of throwing a KeyError when key not found. Also fixed a few compile warnings about struct initialization.
2006-01-04Wednesday sync orange with bf-blenderTon Roosendaal
Note: has the crazyspace fix!
2006-01-04[ #3712 ] Calling makeEditable() and update() on an armature twice ↵Joseph Gilbert
duplicates bones * fixes bug where editbones are not freed on calling update()
2006-01-04Orange; merger with bf-blender.Ton Roosendaal
(Merging is *not* fun work, especially not with bugfixes in main branch for code that got cleaned up in the other! Poor Hos... :)
2005-12-24Fixing a bit of horrible code in Armature.c (BonesDict_repr).Alexander Ewering
There is a lot of very dangerous (and slow) string manipulation code in there. I do not want to appear arrogant, but a bit of basic code QA in this module certainly can't hurt. Please see the diff for further explanation ;-)
2005-12-13Tuesday merger of Orange branch with bf-blenderTon Roosendaal
2005-12-12- Armature/Bone API for pythonJoseph Gilbert
* this resolves a number of outstanding issues with the armature api and gets this ready for release - add/remove bones possible - rolls work correctly now! - ik'ing to parent should work - flags for tip/root/bone selection - etc.
2005-12-07A patch from Ken Hughes per request of Bassam here at Orange: Python access ↵Toni Alatalo
to armature visibility layers.
2005-12-07Orange request; Bones in Armature now have own layer settings.Ton Roosendaal
Works like for Object layers, but local within Armature itself. Each Bone can be in (16 now) any layer, and the Armature layer defines what is visible or not. Also note that hiding will still work too. Since the Blender code is *stuffed* with Bone options now, this commit requires a good test if all tools we got now comply to layers... (I counted 130 cases for checking for selected Bones in code!) In PoseMode; hotkey M will show 'movetolayer' menu. Not in editmode... then its the mirror menu. Todo: make action/nla drawing comply to Armature layer settings.
2005-12-04-- Fix segfault when callign Blender.Armature.Get() with no parametersKen Hughes
2005-11-22A few more python 2.4 macros to covert to 2.3 compatible code.Joseph Gilbert