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,11 +608,42 @@ 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_more_less(Menu): + bl_label = "Select More/Less" + + def draw(self, context): + layout = self.layout + + layout = self.layout + + props = layout.operator("pose.select_hierarchy", text="Parent") + props.extend = False + props.direction = 'PARENT' + + props = layout.operator("pose.select_hierarchy", text="Child") + props.extend = False + props.direction = 'CHILD' + + layout.separator() + + props = layout.operator("pose.select_hierarchy", text="Extend Parent") + props.extend = True + props.direction = 'PARENT' + + props = layout.operator("pose.select_hierarchy", text="Extend Child") + props.extend = True + props.direction = 'CHILD' + + class VIEW3D_MT_select_pose(Menu): bl_label = "Select" @@ -600,23 +663,7 @@ class VIEW3D_MT_select_pose(Menu): layout.separator() - props = layout.operator("pose.select_hierarchy", text="Parent") - props.extend = False - props.direction = 'PARENT' - - props = layout.operator("pose.select_hierarchy", text="Child") - props.extend = False - props.direction = 'CHILD' - - layout.separator() - - props = layout.operator("pose.select_hierarchy", text="Extend Parent") - props.extend = True - props.direction = 'PARENT' - - props = layout.operator("pose.select_hierarchy", text="Extend Child") - props.extend = True - props.direction = 'CHILD' + layout.menu("VIEW3D_MT_select_pose_more_less") layout.separator()