Changeset View
Standalone View
release/scripts/startup/bl_ui/space_view3d.py
| Context not available. | |||||
| layout.menu("VIEW3D_MT_object_relations") | layout.menu("VIEW3D_MT_object_relations") | ||||
| layout.menu("VIEW3D_MT_object_constraints") | layout.menu("VIEW3D_MT_object_constraints") | ||||
| layout.menu("VIEW3D_MT_object_track") | layout.menu("VIEW3D_MT_object_track") | ||||
| layout.menu("VIEW3D_MT_make_links", text="Make Links") | layout.menu("VIEW3D_MT_make_links") | ||||
| layout.separator() | layout.separator() | ||||
campbellbarton: This fails if `obj` is None (checked below). | |||||
Done Inline ActionsThis shouldn't be needed. Multiple separators are now de-duplicated. campbellbarton: This shouldn't be needed. Multiple separators are now de-duplicated. | |||||
Done Inline ActionsClarification: the if selected_objects_len == 1: shouldn't be needed. campbellbarton: Clarification: the `if selected_objects_len == 1:` shouldn't be needed. | |||||
Done Inline ActionsI added that here to make sure there is always a separator after this group, even when the Join operator doesn't appear. Not sure how else to do that. billreynish: I added that here to make sure there is always a separator after this group, even when the Join… | |||||
Done Inline Actionsamong campbellbarton: `among` | |||||
Done Inline Actionsamong, also below. campbellbarton: `among`, also below. | |||||
Done Inline ActionsThis can be removed if it's going to remain empty. campbellbarton: This can be removed if it's going to remain empty. | |||||
Done Inline ActionsThis should probably have a check for whether the object is actually an image empty: HooglyBoogly: This should probably have a check for whether the object is actually an image empty:
`if (obj. | |||||
Done Inline ActionsI don't think this is a good change, batch rename is quite a spesific operation, it's always available in the "Edit" menu, and swapping this out means you can't easily rename the active item - based on the selection. Further, this change could be made for other context menus too (but has not been), so this seems more like a design decision that's outside the scope of this patch. campbellbarton: I don't think this is a good change, batch rename is quite a spesific operation, it's always… | |||||
Done Inline ActionsThis works for empty objects too - which instance collections. campbellbarton: This works for empty objects too - which instance collections. | |||||
| Context not available. | |||||
| class VIEW3D_MT_make_links(Menu): | class VIEW3D_MT_make_links(Menu): | ||||
| bl_label = "Make Links" | bl_label = "Link/Transfer Data" | ||||
| def draw(self, _context): | def draw(self, _context): | ||||
| layout = self.layout | layout = self.layout | ||||
| Context not available. | |||||
| if len(bpy.data.scenes) > 10: | if len(bpy.data.scenes) > 10: | ||||
| layout.operator_context = 'INVOKE_REGION_WIN' | layout.operator_context = 'INVOKE_REGION_WIN' | ||||
| layout.operator("object.make_links_scene", text="Objects to Scene...", icon='OUTLINER_OB_EMPTY') | layout.operator("object.make_links_scene", text="Link Objects to Scene...", icon='OUTLINER_OB_EMPTY') | ||||
| else: | else: | ||||
| layout.operator_context = 'EXEC_REGION_WIN' | layout.operator_context = 'EXEC_REGION_WIN' | ||||
| layout.operator_menu_enum("object.make_links_scene", "scene", text="Objects to Scene") | layout.operator_menu_enum("object.make_links_scene", "scene", text="Link Objects to Scene") | ||||
| layout.separator() | layout.separator() | ||||
| Context not available. | |||||
| layout.operator_enum("object.make_links_data", "type") # inline | layout.operator_enum("object.make_links_data", "type") # inline | ||||
| layout.operator("object.join_uvs") # stupid place to add this! | layout.operator("object.join_uvs", text="Copy UV Maps") # stupid place to add this! | ||||
| class VIEW3D_MT_brush_paint_modes(Menu): | class VIEW3D_MT_brush_paint_modes(Menu): | ||||
| Context not available. | |||||
This fails if obj is None (checked below).