diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-01-14 01:41:11 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-01-14 01:45:47 +0300 |
commit | 30971199aced817a1fa089e6fdeefe0c345e4c48 (patch) | |
tree | 13a35e24e116d2a80052b6d60b84f26c3f3b30be /release/scripts | |
parent | de79d049e2254ce1451126fbaf49b27a01d99308 (diff) |
Add object & pose-mode select more/less menus
Exposes object parent/child select, which wasn't in any menus.
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d.py | 75 |
1 files changed, 61 insertions, 14 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index 6140c15ccef..0c41675658f 100644 --- a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -552,8 +552,40 @@ class VIEW3D_MT_view_cameras(Menu): layout.operator("view3d.object_as_camera") layout.operator("view3d.viewnumpad", text="Active Camera").type = 'CAMERA' + # ********** Select menus, suffix from context.mode ********** +class VIEW3D_MT_select_object_more_less(Menu): + bl_label = "Select More/Less" + + def draw(self, context): + layout = self.layout + + layout = self.layout + + layout.operator("object.select_more", text="More") + layout.operator("object.select_less", text="Less") + + layout.separator() + + props = layout.operator("object.select_hierarchy", text="Parent") + props.extend = False + props.direction = 'PARENT' + + props = layout.operator("object.select_hierarchy", text="Child") + props.extend = False + props.direction = 'CHILD' + + layout.separator() + + props = layout.operator("object.select_hierarchy", text="Extend Parent") + props.extend = True + props.direction = 'PARENT' + + props = layout.operator("object.select_hierarchy", text="Extend Child") + props.extend = True + props.direction = 'CHILD' + class VIEW3D_MT_select_object(Menu): bl_label = "Select" @@ -576,29 +608,22 @@ class VIEW3D_MT_select_object(Menu): layout.separator() + layout.menu("VIEW3D_MT_select_object_more_less") + + layout.separator() + layout.operator_menu_enum("object.select_grouped", "type", text="Grouped") layout.operator_menu_enum("object.select_linked", "type", text="Linked") layout.operator("object.select_pattern", text="Select Pattern...") -class VIEW3D_MT_select_pose(Menu): - bl_label = "Select" +class VIEW3D_MT_select_pose_more_less(Menu): + bl_label = "Select More/Less" def draw(self, context): layout = self.layout - layout.operator("view3d.select_border") - layout.operator("view3d.select_circle") - - layout.separator() - - layout.operator("pose.select_all").action = 'TOGGLE' - layout.operator("pose.select_all", text="Inverse").action = 'INVERT' - layout.operator("pose.select_mirror", text="Flip Active") - layout.operator("pose.select_constraint_target", text="Constraint Target") - layout.operator("pose.select_linked", text="Linked") - - layout.separator() + layout = self.layout props = layout.operator("pose.select_hierarchy", text="Parent") props.extend = False @@ -618,6 +643,28 @@ class VIEW3D_MT_select_pose(Menu): props.extend = True props.direction = 'CHILD' + +class VIEW3D_MT_select_pose(Menu): + bl_label = "Select" + + def draw(self, context): + layout = self.layout + + layout.operator("view3d.select_border") + layout.operator("view3d.select_circle") + + layout.separator() + + layout.operator("pose.select_all").action = 'TOGGLE' + layout.operator("pose.select_all", text="Inverse").action = 'INVERT' + layout.operator("pose.select_mirror", text="Flip Active") + layout.operator("pose.select_constraint_target", text="Constraint Target") + layout.operator("pose.select_linked", text="Linked") + + layout.separator() + + layout.menu("VIEW3D_MT_select_pose_more_less") + layout.separator() layout.operator_menu_enum("pose.select_grouped", "type", text="Grouped") |