[Bf-blender-cvs] CVS commit: blender/source/blender/src editobject.c blender/source/blender/include BDR_editobject.h blender/source/blender/python/api2_2x Scene.c blender/source/blender/python/api2_2x/doc Scene.py
Ken Hughes
khughes at pacific.edu
Fri Sep 8 20:31:09 CEST 2006
khughes (Ken Hughes) 2006/09/08 20:31:09 CEST
Modified files:
blender/source/blender/src editobject.c
blender/source/blender/include BDR_editobject.h
blender/source/blender/python/api2_2x Scene.c
blender/source/blender/python/api2_2x/doc Scene.py
Log:
===Python API===
Bugfix for #4971: Scene.unlink() was incorrectly decrementing the datablock
user count whenever an object was removed from a scene, instead of only when
the object's count reached 0. The Python code was modified to use the
existing free_and_unlink_base() function (with some modifications to allow
specifying a scene). Also fixed a bug with the undocumented return codes
from the method; it now returns True if the object was found in the scene.
Revision Changes Path
1.319 +11 -5 blender/source/blender/src/editobject.c
<http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/src/editobject.c.diff?r1=1.318&r2=1.319&cvsroot=bf-blender>
1.27 +2 -1 blender/source/blender/include/BDR_editobject.h
<http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/include/BDR_editobject.h.diff?r1=1.26&r2=1.27&cvsroot=bf-blender>
1.53 +8 -20 blender/source/blender/python/api2_2x/Scene.c
<http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/python/api2_2x/Scene.c.diff?r1=1.52&r2=1.53&cvsroot=bf-blender>
1.20 +2 -0 blender/source/blender/python/api2_2x/doc/Scene.py
<http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/python/api2_2x/doc/Scene.py.diff?r1=1.19&r2=1.20&cvsroot=bf-blender>
More information about the Bf-blender-cvs
mailing list