This repository has been archived on 2023-10-09. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
blender-archive/source/blender/blenkernel
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-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-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-02-18 08:22:12 +11:00
2019-02-27 19:59:19 +11:00
2019-02-27 11:14:41 +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
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 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