[Bf-committers] Re: [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

Campbell Barton cbarton at metavr.com
Sun May 6 08:40:40 CEST 2007


at the moment, if you rename some data to "" - an empty string, then 
duplicate, it allows more then 1 datablock called ""

Name the object "" then duplicate a few times and youll see.

just traced a bug back to this commit.

Ken Hughes wrote:
> 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>
> _______________________________________________
> Bf-blender-cvs mailing list
> Bf-blender-cvs at projects.blender.org
> http://projects.blender.org/mailman/listinfo/bf-blender-cvs
> 


-- 
See MetaVR Visuals Used at the Combat Studies Institute
http://www.metavr.com/casestudies/baghdadviews.html

Campbell J Barton

133 Hope Street
Geelong West, Victoria 3218 Australia

URL:    http://www.metavr.com
e-mail: cbarton at metavr.com
phone: AU (03) 5229 0241

!DSPAM:18,463d787e876241059133043!




More information about the Bf-committers mailing list