Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_view3d.py
| Show First 20 Lines • Show All 2,759 Lines • ▼ Show 20 Lines | class VIEW3D_MT_make_single_user(Menu): | ||||
| bl_label = "Make Single User" | bl_label = "Make Single User" | ||||
| def draw(self, _context): | def draw(self, _context): | ||||
| layout = self.layout | layout = self.layout | ||||
| layout.operator_context = 'EXEC_REGION_WIN' | layout.operator_context = 'EXEC_REGION_WIN' | ||||
| props = layout.operator("object.make_single_user", text="Object") | props = layout.operator("object.make_single_user", text="Object") | ||||
| props.object = True | props.object = True | ||||
| props.obdata = props.material = props.animation = False | props.obdata = props.material = props.animation = props.obdata_animation = False | ||||
| props = layout.operator("object.make_single_user", text="Object & Data") | props = layout.operator("object.make_single_user", text="Object & Data") | ||||
| props.object = props.obdata = True | props.object = props.obdata = True | ||||
| props.material = props.animation = False | props.material = props.animation = props.obdata_animation = False | ||||
| props = layout.operator("object.make_single_user", text="Object & Data & Materials") | props = layout.operator("object.make_single_user", text="Object & Data & Materials") | ||||
| props.object = props.obdata = props.material = True | props.object = props.obdata = props.material = True | ||||
| props.animation = False | props.animation = props.obdata_animation = False | ||||
| props = layout.operator("object.make_single_user", text="Materials") | props = layout.operator("object.make_single_user", text="Materials") | ||||
| props.material = True | props.material = True | ||||
| props.object = props.obdata = props.animation = False | props.object = props.obdata = props.animation = props.obdata_animation = False | ||||
| props = layout.operator("object.make_single_user", text="Object Animation") | props = layout.operator("object.make_single_user", text="Object Animation") | ||||
| props.animation = True | props.animation = True | ||||
| props.object = props.obdata = props.material = False | props.object = props.obdata = props.material = props.obdata_animation = False | ||||
| props = layout.operator("object.make_single_user", text="Object Data Animation") | |||||
| props.obdata_animation = props.obdata = True | |||||
| props.object = props.material = props.animation = False | |||||
| class VIEW3D_MT_object_convert(Menu): | class VIEW3D_MT_object_convert(Menu): | ||||
| bl_label = "Convert" | bl_label = "Convert" | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| ob = context.active_object | ob = context.active_object | ||||
| ▲ Show 20 Lines • Show All 4,912 Lines • Show Last 20 Lines | |||||