UI: use pie menu for snap, pivot and proportional editing.

* Proportional pie menu at shift+O.
* Snap pie menu at shift+S.
* Pivot pie menu at comma. Previous comma, ctrl+comma, period
  and ctrl+period shortcuts for specific pivot types were removed.

Ref T56881.
This commit is contained in:
William Reynish
2018-09-26 17:32:11 +02:00
committed by Brecht Van Lommel
parent c0b9a4a86e
commit b2a569dd68
15 changed files with 175 additions and 67 deletions

View File

@@ -232,6 +232,18 @@ class NLA_MT_edit_transform(Menu):
layout.operator("transform.transform", text="Extend").mode = 'TIME_EXTEND'
layout.operator("transform.transform", text="Scale").mode = 'TIME_SCALE'
class NLA_MT_snap_pie(Menu):
bl_label = "Snap"
def draw(self, context):
layout = self.layout
pie = layout.menu_pie()
pie.operator("nla.snap", text="Current Frame").type = 'CFRA'
pie.operator("nla.snap", text="Nearest Frame").type = 'NEAREST_FRAME'
pie.operator("nla.snap", text="Nearest Second").type = 'NEAREST_SECOND'
pie.operator("nla.snap", text="Nearest Marker").type = 'NEAREST_MARKER'
classes = (
NLA_HT_header,
@@ -242,6 +254,7 @@ classes = (
NLA_MT_marker,
NLA_MT_add,
NLA_MT_edit_transform,
NLA_MT_snap_pie,
NLA_PT_filters,
)