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-08-28This commit fixes up a bunch of svn properties to hopefully make things a ↵Kent Mein
little nicer for everyone. Patch provied by gsrb3d bug tracker #7061 Kent
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-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-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 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-10Python APIKen Hughes
---------- Rearrange includes, remove dead code to fix gcc warnings.
2007-02-27moved Lattice to getseters. gen_utils.c - removed unused code fixed a warning.Campbell Barton
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-25SceneCampbell Barton
* Moved to getsetattrs * added scene.users (get) * added scene.fakeUser (get/set) * added scene.world (get/set) * added scene.timeline (get) * added scene.render (get) * added scene.radiosity (get) * added scene.objects.camera (get/set) Group * added properties gen_utils * made getScriptLinks work as documented, return an empty list rather then None. header files, noted libdata after PyObject as a requirement. Others, * Deprecate prints for older functionality EpyDocs still need updating.
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.
2006-12-28Mech cleanup use new edge_keysCampbell Barton
continual script stuff, minor stuff.. fix for bad return in group. Added back group.objects.append/remove but print deprectaed warning. also some epydoc changes.
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-17added fakeUser and users to more pytypesCampbell Barton
2006-12-11renamed objects.add() and .remove() to .link() and .unlink() for scene and ↵Campbell Barton
group objects to be less pythonic and more like blender. for scn.objects.new() a optional second argument can be used to spesify the name. We still need a way to add a new Empty (some constant)
2006-11-17Added group.layers bitfield to the python APICampbell Barton
2006-11-03ack- need to get the hang of usercounts better- it seems they need to be ↵Campbell Barton
initialized as 1 for groups, just like images.
2006-10-12On Matt's suggestion moved "Make Link->Groups" to the add groups menu as ↵Campbell Barton
"Add to Active Objects Groups" removed "Make Link -> DupliGroup" because Copy->Duplis does the same thing. Python's Group.c had an unneeded scene/base lookup.
2006-10-06added comparison function to many python types so you can do == and =!Campbell Barton
2006-09-24fixed mistakes and warnings in previous commit.Campbell Barton
2006-09-24Extra generic errors for Scene, Groups and Metaballs to raise errors when ↵Campbell Barton
trying to do anything with a python objects thats had its data removed in Blender. Added to existing scn.objects scn.objects.active (get/set the active object for the scene) scn.objects.selected - an iterator that only uses selected objects scn.objects.context - an iterator on objects in the user context (visible in the current 3d views layer and selected) These are the same type as scn.objects but .add() .remove() .new() .active etc raise errors. so scn.objects.selected.add() will raise an error. Made nested loops possible with scn.objects, metaball.elements and ob.modifiers, by initializing the iter value as NULL and creating copys of the pyobject when _getIter() is called if ->iter is not NULL. This is how pythons xrange() works.
2006-08-27Added scn.objects.new(obbdata) as a way of adding object data to a scene and ↵Campbell Barton
createing the object data at once. This functionality will probably be moved later on after discussion.
2006-08-26Added missing settings to Modifiers (could not set on Render/Cage/Editmode :/)Campbell Barton
added GPL header to Group.c
2006-08-15Added __copy__ to armature, material, curve, groupCampbell Barton
2006-04-24warnings cleanup for the python project on windowsJoseph Gilbert
2006-04-20Added Group to Blender.Types, tested and working.Campbell Barton
Added Group Epydocs, with 2 examples. also added http://en.wikibooks.org/wiki/Blender_3D:_Blending_Into_Python to the blender links main page.
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-19Added support for group objectsCampbell Barton
grp.objects To have an iterator assigned as well as a list. Since gp.objects is an ietartor this is expected. grp.objects= someGroup.objects works now. Some other small fixes made. Made a wrapper for add_to_group() That handles the OB_FROMGROUP flag. Should be moved to group.c's add_to_group() void add_to_group_wraper(Group *group, Object *ob) { Base *base; add_to_group(group, ob); if (!(ob->flag & OB_FROMGROUP)) { /* do this to avoid a listbase lookup */ ob->flag |= OB_FROMGROUP; base= object_in_scene(ob, G.scene); if (base) base->flag |= OB_FROMGROUP; } }
2006-03-18Moved declerations to the top of the skope so as to work with MSVC?Campbell Barton
started removeing // from constant.h to shut GCC's -pedantic up. realized // are used everywhere.
2006-03-18Added Blender.Group moduleCampbell Barton
The plans for the new Python API are too far off to have this module conform. Needs testing with MSVC 6