Files
test2/source/blender/blenkernel
Dalai Felinto f167226b79 Move to Collection - initial operator
How to use: Select a few objects, and press "M" in the viewport.

If you hold ctrl the objects will be added to the selected collection.
Otherwise they are removed from all their original collections and moved
to the selected one instead.

Development Notes
=================
The ideal solution would be to implement an elegant generic multi-level
menu system similar to toolbox_generic() in 2.49.

Instead I used `uiItemMenuF` to acchieve the required nesting of the menus.

The downside is that `uiItemMenuF` requires the data its callback uses to be
always valid until the menu is discarded. But since there is no callback we
can call when the menu is discarded for operators that exited with
`OPERATOR_INTERFACE`.

That means we are using static allocated data, that is only freed next time
the operator is called. Which also means there will always be some
memory leakage.

Reviewers: campbellbarton

Differential Revision: https://developer.blender.org/D3117
2018-03-28 17:14:51 -03:00
..
2017-06-01 19:59:37 +02:00
2018-01-28 17:00:39 +11:00
2017-05-25 15:19:58 +10:00
2018-03-09 11:52:11 +11:00
2016-08-08 17:51:15 +02:00
2018-03-09 11:52:11 +11:00
2017-08-07 20:48:22 +02:00
2017-12-13 16:14:08 +01:00
2015-11-12 18:54:26 +11:00
2016-05-11 20:20:25 +10:00
2016-05-03 13:52:07 +10:00