Age | Commit message (Collapse) | Author |
|
little nicer for everyone.
Patch provied by gsrb3d
bug tracker #7061
Kent
|
|
subclass and C/subtypes work.
was reported as a bug a while ago.
|
|
METH_VARARGS everywhere and getting the single args from the tuple.
Use METH_O where applicable.
|
|
|
|
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)
|
|
|
|
PyObjects type, now only use macro's
|
|
added copy function to lamp, texture and ipo types
|
|
|
|
previously only some datatypes adding functions accepted a name.
also updated the Bpy.py epydocs
|
|
from gen_utils and BPY_interface
small cleanup, removed unused functions and explicetly cast pointers..
|
|
----------
Rearrange includes, remove dead code to fix gcc warnings.
|
|
|
|
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.
|
|
* 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.
|
|
* 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.
|
|
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.
|
|
This isnt needed because the limit is alredy being set by rename_id()
some other minor changed- use None returning maro
|
|
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
|
|
|
|
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)
|
|
|
|
initialized as 1 for groups, just like images.
|
|
"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.
|
|
|
|
|
|
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.
|
|
createing the object data at once.
This functionality will probably be moved later on after discussion.
|
|
added GPL header to Group.c
|
|
|
|
|
|
Added Group Epydocs, with 2 examples.
also added http://en.wikibooks.org/wiki/Blender_3D:_Blending_Into_Python
to the blender links main page.
|
|
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.
|
|
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;
}
}
|
|
started removeing // from constant.h to shut GCC's -pedantic up. realized // are used everywhere.
|
|
The plans for the new Python API are too far off to have this module conform.
Needs testing with MSVC 6
|