[Bf-blender-cvs] CVS commit: blender/source/blender/blenkernel BKE_library.h blender/source/blender/blenkernel/intern library.c blender/source/blender/python/api2_2x Library.c
Ken Hughes
khughes at pacific.edu
Thu Mar 29 06:55:29 CEST 2007
khughes (Ken Hughes) 2007/03/29 06:55:29 CEST
Modified files:
blender/source/blender/blenkernel BKE_library.h
blender/source/blender/blenkernel/intern library.c
blender/source/blender/python/api2_2x Library.c
Log:
Revisions to previous change of new_id().
Note: the intent of the original modification (and these updates) is not to
change how new_id() functions. What has been done is to pull out the code
which calculates a new name for an ID in the case of duplicate, as would
happen when you copy any datablock, into a separate function. This code is
necessary in the new Python Library module, since it otherwise is extremely
difficult to locate a new datablock appended from a library. new_id() calls
this separate function to generate a name for the new ID if necessary, just
as it previously did.
To make the purpose of this new function clearer, I renamed it
check_for_dupid() and added more extensive comments. I repeat, it's not
meant to be a substitute for new_id().
Revision Changes Path
1.12 +2 -2 blender/source/blender/blenkernel/BKE_library.h
<http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/blenkernel/BKE_library.h.diff?r1=1.11&r2=1.12&cvsroot=bf-blender>
1.31 +99 -83 blender/source/blender/blenkernel/intern/library.c
<http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/blenkernel/intern/library.c.diff?r1=1.30&r2=1.31&cvsroot=bf-blender>
1.19 +9 -14 blender/source/blender/python/api2_2x/Library.c
<http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/python/api2_2x/Library.c.diff?r1=1.18&r2=1.19&cvsroot=bf-blender>
More information about the Bf-blender-cvs
mailing list