diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-09-06 13:13:01 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-09-06 13:22:09 +0300 |
commit | f1c8c25a3edfbb03795250965ece9d39fef58356 (patch) | |
tree | ae04bad082c3939783725482c5c0922ebf42068c /release | |
parent | 32ef77bf0a995db447ad92d4a01e7ed5afcb5349 (diff) |
UI: rename Translate/Grab to Move in UI, shortcuts stay the same.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/space_dopesheet.py | 2 | ||||
-rw-r--r-- | release/scripts/startup/bl_ui/space_graph.py | 2 | ||||
-rw-r--r-- | release/scripts/startup/bl_ui/space_nla.py | 2 | ||||
-rw-r--r-- | release/scripts/startup/bl_ui/space_sequencer.py | 4 | ||||
-rw-r--r-- | release/scripts/startup/bl_ui/space_time.py | 2 | ||||
-rw-r--r-- | release/scripts/startup/bl_ui/space_toolsystem_toolbar.py | 2 | ||||
-rw-r--r-- | release/scripts/templates_py/gizmo_operator.py | 16 |
7 files changed, 15 insertions, 15 deletions
diff --git a/release/scripts/startup/bl_ui/space_dopesheet.py b/release/scripts/startup/bl_ui/space_dopesheet.py index f16a906f4cf..d10f96b8e81 100644 --- a/release/scripts/startup/bl_ui/space_dopesheet.py +++ b/release/scripts/startup/bl_ui/space_dopesheet.py @@ -489,7 +489,7 @@ class DOPESHEET_MT_key_transform(Menu): def draw(self, context): layout = self.layout - layout.operator("transform.transform", text="Grab/Move").mode = 'TIME_TRANSLATE' + layout.operator("transform.transform", text="Move").mode = 'TIME_TRANSLATE' layout.operator("transform.transform", text="Extend").mode = 'TIME_EXTEND' layout.operator("transform.transform", text="Slide").mode = 'TIME_SLIDE' layout.operator("transform.transform", text="Scale").mode = 'TIME_SCALE' diff --git a/release/scripts/startup/bl_ui/space_graph.py b/release/scripts/startup/bl_ui/space_graph.py index eacfb364130..9b3708ce5b1 100644 --- a/release/scripts/startup/bl_ui/space_graph.py +++ b/release/scripts/startup/bl_ui/space_graph.py @@ -306,7 +306,7 @@ class GRAPH_MT_key_transform(Menu): def draw(self, context): layout = self.layout - layout.operator("transform.translate", text="Grab/Move") + layout.operator("transform.translate", text="Move") layout.operator("transform.transform", text="Extend").mode = 'TIME_EXTEND' layout.operator("transform.rotate", text="Rotate") layout.operator("transform.resize", text="Scale") diff --git a/release/scripts/startup/bl_ui/space_nla.py b/release/scripts/startup/bl_ui/space_nla.py index 4e20001b133..c876f1f5a76 100644 --- a/release/scripts/startup/bl_ui/space_nla.py +++ b/release/scripts/startup/bl_ui/space_nla.py @@ -228,7 +228,7 @@ class NLA_MT_edit_transform(Menu): def draw(self, context): layout = self.layout - layout.operator("transform.translate", text="Grab/Move") + layout.operator("transform.translate", text="Move") layout.operator("transform.transform", text="Extend").mode = 'TIME_EXTEND' layout.operator("transform.transform", text="Scale").mode = 'TIME_SCALE' diff --git a/release/scripts/startup/bl_ui/space_sequencer.py b/release/scripts/startup/bl_ui/space_sequencer.py index 57c7f7cac14..f5f0edc7311 100644 --- a/release/scripts/startup/bl_ui/space_sequencer.py +++ b/release/scripts/startup/bl_ui/space_sequencer.py @@ -389,8 +389,8 @@ class SEQUENCER_MT_strip_transform(Menu): def draw(self, context): layout = self.layout - layout.operator("transform.transform", text="Grab/Move").mode = 'TRANSLATION' - layout.operator("transform.transform", text="Grab/Extend from Frame").mode = 'TIME_EXTEND' + layout.operator("transform.transform", text="Move").mode = 'TRANSLATION' + layout.operator("transform.transform", text="Move/Extend from Frame").mode = 'TIME_EXTEND' layout.operator("sequencer.slip", text="Slip Strip Contents") layout.separator() diff --git a/release/scripts/startup/bl_ui/space_time.py b/release/scripts/startup/bl_ui/space_time.py index 7dc23550f52..10cd2f6d47b 100644 --- a/release/scripts/startup/bl_ui/space_time.py +++ b/release/scripts/startup/bl_ui/space_time.py @@ -196,7 +196,7 @@ def marker_menu_generic(layout): layout.separator() layout.operator("marker.rename", text="Rename Marker") - layout.operator("marker.move", text="Grab/Move Marker") + layout.operator("marker.move", text="Move Marker") layout.separator() diff --git a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py index c5feb485355..eb1b98a23e9 100644 --- a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py +++ b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py @@ -304,7 +304,7 @@ class _defs_transform: layout.prop(tool_settings, "use_gizmo_apron") return dict( - text="Grab", + text="Move", # cursor='SCROLL_XY', icon="ops.transform.translate", widget="TRANSFORM_GGT_gizmo", diff --git a/release/scripts/templates_py/gizmo_operator.py b/release/scripts/templates_py/gizmo_operator.py index bdc1bc9893c..d1eef09685d 100644 --- a/release/scripts/templates_py/gizmo_operator.py +++ b/release/scripts/templates_py/gizmo_operator.py @@ -114,20 +114,20 @@ class SelectSideOfPlaneGizmoGroup(GizmoGroup): from mathutils import Matrix, Vector # ---- - # Grab + # Move - def grab_get_cb(): + def move_get_cb(): op = SelectSideOfPlaneGizmoGroup.my_target_operator(context) return op.plane_co - def grab_set_cb(value): + def move_set_cb(value): op = SelectSideOfPlaneGizmoGroup.my_target_operator(context) op.plane_co = value # XXX, this may change! op.execute(context) - mpr = self.gizmos.new("GIZMO_GT_grab_3d") - mpr.target_set_handler("offset", get=grab_get_cb, set=grab_set_cb) + mpr = self.gizmos.new("GIZMO_GT_move_3d") + mpr.target_set_handler("offset", get=move_get_cb, set=move_set_cb) mpr.use_draw_value = True @@ -139,7 +139,7 @@ class SelectSideOfPlaneGizmoGroup(GizmoGroup): mpr.scale_basis = 0.2 - self.widget_grab = mpr + self.widget_move = mpr # ---- # Dial @@ -189,12 +189,12 @@ class SelectSideOfPlaneGizmoGroup(GizmoGroup): co = Vector(op.plane_co) no = Vector(op.plane_no).normalized() - # Grab + # Move no_z = no no_y = no_z.orthogonal() no_x = no_z.cross(no_y) - matrix = self.widget_grab.matrix_basis + matrix = self.widget_move.matrix_basis matrix.identity() matrix.col[0].xyz = no_x matrix.col[1].xyz = no_y |