[Bf-blender-cvs] [0b4bd3ddc01] master: NLA: Update context menu to include meta strip operators

Jason Schleifer noreply at git.blender.org
Thu Nov 10 12:07:36 CET 2022


Commit: 0b4bd3ddc016298e868169a541cf6c132b10c587
Author: Jason Schleifer
Date:   Thu Nov 10 12:04:31 2022 +0100
Branches: master
https://developer.blender.org/rB0b4bd3ddc016298e868169a541cf6c132b10c587

NLA: Update context menu to include meta strip operators

The meta strip operator is available in the Add menu, but not in the
context menu.

This patch adds these two operators to the context menu:
* nla.meta_add
* nla.meta_remove

Reviewed By: sybren, RiggingDojo

Differential Revision: https://developer.blender.org/D16353

===================================================================

M	release/scripts/startup/bl_ui/space_nla.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/space_nla.py b/release/scripts/startup/bl_ui/space_nla.py
index a1c7e5c54de..b43434d9988 100644
--- a/release/scripts/startup/bl_ui/space_nla.py
+++ b/release/scripts/startup/bl_ui/space_nla.py
@@ -310,6 +310,11 @@ class NLA_MT_context_menu(Menu):
 
         layout.separator()
 
+        layout.operator("nla.meta_add")
+        layout.operator("nla.meta_remove")
+
+        layout.separator()
+
         layout.operator("nla.swap")
 
         layout.separator()



More information about the Bf-blender-cvs mailing list