[Bf-blender-cvs] [9469ebe1cc3] master: Cleanup: sanitize BKE_libblock_copy_for_localize() copy flags.

Bastien Montagne noreply at git.blender.org
Tue Feb 5 11:08:12 CET 2019


Commit: 9469ebe1cc394af8b22e888a33edeed682e99741
Author: Bastien Montagne
Date:   Mon Feb 4 18:23:50 2019 +0100
Branches: master
https://developer.blender.org/rB9469ebe1cc394af8b22e888a33edeed682e99741

Cleanup: sanitize BKE_libblock_copy_for_localize() copy flags.

Asking to not copy animdata, but copy actions, is pure nonsense (and
make LIB_ID_COPY_ACTIONS flag totally useless/no-op).

===================================================================

M	source/blender/blenkernel/intern/library.c

===================================================================

diff --git a/source/blender/blenkernel/intern/library.c b/source/blender/blenkernel/intern/library.c
index 74c75b3281f..7484ca4d716 100644
--- a/source/blender/blenkernel/intern/library.c
+++ b/source/blender/blenkernel/intern/library.c
@@ -1413,7 +1413,6 @@ void *BKE_libblock_copy_for_localize(const ID *id)
 	ID *idn;
 	BKE_libblock_copy_ex(NULL, id, &idn, (LIB_ID_CREATE_NO_MAIN |
 	                                      LIB_ID_CREATE_NO_USER_REFCOUNT |
-	                                      LIB_ID_COPY_ACTIONS |
 	                                      LIB_ID_COPY_NO_ANIMDATA));
 	return idn;
 }



More information about the Bf-blender-cvs mailing list