Julian Eisel
17c928e975
UI: Add context menu support for tree-view items
...
Tree-view items can now easily define their own context menu. This works
by overriding the `ui::AbstractTreeViewItem::build_context_menu()`
function. See the documentation:
https://wiki.blender.org/wiki/Source/Interface/Views#Context_Menus
Consistently with the Outliner and File Browser, the right-clicked item
also gets activated. This makes sure the correct context is set for the
operators and makes it clear to the user which item is operated on.
An operator to rename the active item is also added, which is something
you'd typically want to put in the context menu as well.
2021-10-08 20:08:22 +02:00
..
2021-07-26 12:32:42 +10:00
2021-09-28 17:41:40 +02:00
2021-07-16 11:48:54 +10:00
2021-07-29 17:35:06 +02:00
2020-12-21 14:31:32 -07:00
2021-03-16 07:43:17 +01:00
2021-06-30 16:42:19 +10:00
2021-06-30 16:42:19 +10:00
2021-09-29 17:15:23 +02:00
2021-01-04 17:38:11 +11:00
2021-06-30 16:42:19 +10:00
2020-08-07 09:50:34 +02:00
2021-09-03 15:24:13 +02:00
2021-10-08 17:07:56 +11:00
2021-06-15 19:01:53 -07:00
2021-09-23 17:41:11 +02:00
2021-06-24 15:59:34 +10:00
2021-09-10 13:28:47 +02:00
2021-07-12 17:41:15 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2021-06-30 16:42:19 +10:00
2020-08-07 09:50:34 +02:00
2021-07-13 15:13:33 +10:00
2021-08-24 18:00:05 +01:00
2021-04-13 15:28:43 +10:00
2021-09-13 18:02:27 +10:00
2020-08-07 11:49:58 -06:00
2021-01-18 12:15:46 +01:00
2021-07-16 11:48:54 +10:00
2020-08-07 09:50:34 +02:00
2021-07-21 08:18:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2021-10-08 03:27:55 +11:00
2021-02-11 12:34:41 +11:00
2020-08-07 09:50:34 +02:00
2021-06-15 09:31:03 +02:00
2020-08-07 09:50:34 +02:00
2021-03-08 16:25:08 +01:00
2021-07-16 11:48:54 +10:00
2021-09-29 15:07:13 +02:00
2021-09-28 11:14:44 +02:00
2021-04-19 00:24:43 -03:00
2021-08-31 17:02:47 +10:00
2021-03-18 09:36:44 +11:00
2020-08-07 09:50:34 +02:00
2021-06-26 21:50:48 +10:00
2020-08-07 09:50:34 +02:00
2020-12-16 16:25:56 +11:00
2021-10-08 03:27:55 +11:00
2021-09-30 17:32:45 +10:00
2021-02-10 13:25:31 +01:00
2021-09-08 08:47:26 +02:00
2021-09-29 14:34:01 +02:00
2021-07-15 16:12:36 +02:00
2021-10-08 20:08:22 +02:00
2021-09-23 19:33:54 +02:00
2021-08-23 16:27:33 +02:00
2021-10-08 20:08:22 +02:00
2021-09-29 09:12:47 +02:00