Blender Git Commit Log

Git Commits -> Revision b8e425a

Revision b8e425a by Ken Hughes (master)
March 29, 2007, 04:55 (GMT)


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().

Commit Details:

Full Hash: b8e425af7c24ee24ee43205b0ce6e66e6a6a0c22
SVN Revision: 10409
Parent Commit: 42fa2ba
Lines Changed: +107, -96

3 Modified Paths:

/source/blender/blenkernel/BKE_library.h (+1, -1) (Diff)
/source/blender/blenkernel/intern/library.c (+98, -82) (Diff)
/source/blender/python/api2_2x/Library.c (+8, -13) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021