diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2015-12-28 01:22:43 +0300 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2015-12-28 01:22:43 +0300 |
commit | 540ab7a55af91ae1eca00a90cc53f293d876f5a8 (patch) | |
tree | 387111cbb6ecbc36fa759aadd5ad8192f76927e7 /source/blender/blenloader | |
parent | c4c3d84d5805d8c91aa3ef06f70492d60f4e7778 (diff) |
Changes to rename_id function:
* Don't copy name before entering new_id function. new_id does that for
us already.
* Take a main argument to make the function possible to use with
different databases
* Append BKE_ to rename_id
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/versioning_defaults.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenloader/intern/versioning_defaults.c b/source/blender/blenloader/intern/versioning_defaults.c index cf0e4438963..1dc3128319f 100644 --- a/source/blender/blenloader/intern/versioning_defaults.c +++ b/source/blender/blenloader/intern/versioning_defaults.c @@ -234,7 +234,7 @@ void BLO_update_defaults_startup_blend(Main *bmain) br = (Brush *)BKE_libblock_find_name_ex(bmain, ID_BR, "Twist"); if (br) { - rename_id(&br->id, "Rotate"); + BKE_rename_id(bmain, &br->id, "Rotate"); } } } |