diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-04-25 17:59:35 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-04-25 17:59:35 +0300 |
commit | 89bcc80c254590f451e6d503d3b4470999a5b98a (patch) | |
tree | e2cd29952048be2c310045fd75d07379f3da67c9 | |
parent | 331e97bcf3778209f41e819354f873abf3886740 (diff) |
Library: Add assert to catch unsupported copy flags combination
Thanks Bastien for review!
-rw-r--r-- | source/blender/blenkernel/intern/library.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/library.c b/source/blender/blenkernel/intern/library.c index 10b724f9f69..292f37b5ce9 100644 --- a/source/blender/blenkernel/intern/library.c +++ b/source/blender/blenkernel/intern/library.c @@ -1326,6 +1326,7 @@ void BKE_libblock_copy_ex(Main *bmain, const ID *id, ID **r_newid, const int fla } /* the duplicate should get a copy of the animdata */ + BLI_assert((flag & LIB_ID_COPY_ACTIONS) == 0 || (flag & LIB_ID_CREATE_NO_MAIN) == 0); id_copy_animdata(bmain, new_id, (flag & LIB_ID_COPY_ACTIONS) != 0 && (flag & LIB_ID_CREATE_NO_MAIN) == 0); if ((flag & LIB_ID_CREATE_NO_DEG_TAG) == 0 && (flag & LIB_ID_CREATE_NO_MAIN) == 0) { |