Bastien Montagne
52f318b914
Refactor duplicate code for collections.
...
* Fix incorrect handling of children collections being linked more than
once in the hierarchy (previous code would make a new copy for each
link, instead of just re-linking the first copy for each extra link).
* Simplify some aspects of it (we do not need a GHash for new objects,
we can use ID->newid pointer instead, and some iterations can be done
directly on existing linked lists of old collection, instead of making
temp local copies of them).
* Move all copy logic into a single private recursive function (it was a
bit odd/disturbing to see calling function being indirectly called again
by the recursive helper one - not wrong, but that kind of code path can
quickly become problematic in recursive patterns).
* Added some comments about expected behavior of
`BKE_collection_duplicate()` depending on its booleans options.
2019-03-02 22:00:34 +01:00
..
2019-03-02 22:00:34 +01:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-28 16:28:24 +01:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-18 10:42:06 +01:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-03-01 11:44:19 -03:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-23 12:59:13 +11:00
2019-02-18 08:22:12 +11:00
2019-02-28 20:47:50 +01:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-18 17:00:50 +01:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-26 16:04:27 +00:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-25 19:55:49 +01:00
2019-02-18 08:22:12 +11:00
2019-03-01 11:44:19 -03:00
2019-02-18 08:22:12 +11:00
2019-02-23 12:59:13 +11:00
2019-02-28 16:35:12 +01:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-27 19:59:19 +11:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-27 11:14:41 +11:00
2019-02-18 08:22:12 +11:00
2019-02-28 19:17:16 +01:00
2019-02-18 08:22:12 +11:00
2019-02-23 12:59:13 +11:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-28 20:47:50 +01:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-27 12:36:32 +11:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-03-01 11:44:19 -03:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-23 12:59:13 +11:00
2019-02-18 14:17:57 +01:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-26 01:37:49 +11:00
2019-02-18 08:22:12 +11:00
2019-02-23 11:33:48 -08:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-22 17:02:51 +01:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-22 17:02:51 +01:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-27 11:03:16 +11:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-27 12:36:32 +11:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00
2019-02-18 08:22:12 +11:00