py/rna remove functions now all work in a similar way.
authorCampbell Barton <ideasman42@gmail.com>
Tue, 24 Aug 2010 06:40:28 +0000 (06:40 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 24 Aug 2010 06:40:28 +0000 (06:40 +0000)
commitadae794233e168aa4046b560c43db6b48725cc08
tree07760de7ef9a04b9912250d77b6450f05ac1be4c
parent70e99a3476aa66fa3ef1238643e9cf37e41ce0cd
py/rna remove functions now all work in a similar way.
- some remove() functions took an int argument rather then the item to remove.
- disallow None argument.
- raise an error if the item isnt in the collection.
17 files changed:
source/blender/blenkernel/BKE_constraint.h
source/blender/blenkernel/BKE_fcurve.h
source/blender/blenkernel/intern/constraint.c
source/blender/blenkernel/intern/fmodifier.c
source/blender/makesrna/intern/rna_animation.c
source/blender/makesrna/intern/rna_armature.c
source/blender/makesrna/intern/rna_color.c
source/blender/makesrna/intern/rna_curve.c
source/blender/makesrna/intern/rna_fcurve.c
source/blender/makesrna/intern/rna_main_api.c
source/blender/makesrna/intern/rna_mesh.c
source/blender/makesrna/intern/rna_meta.c
source/blender/makesrna/intern/rna_object.c
source/blender/makesrna/intern/rna_pose.c
source/blender/makesrna/intern/rna_scene.c
source/blender/makesrna/intern/rna_userdef.c
source/blender/makesrna/intern/rna_wm.c