Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_view3d.py
| Show First 20 Lines • Show All 1,981 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| "object.convert", | "object.convert", | ||||
| text="Visual Geometry to Mesh", | text="Visual Geometry to Mesh", | ||||
| text_ctxt=i18n_contexts.default, | text_ctxt=i18n_contexts.default, | ||||
| ).target = 'MESH' | ).target = 'MESH' | ||||
| layout.operator("object.duplicates_make_real") | layout.operator("object.duplicates_make_real") | ||||
| class VIEW3D_MT_object_parent(Menu): | class VIEW3D_MT_object_parent(Menu): | ||||
| bl_label = "Parent" | bl_label = "Parent" | ||||
brecht: It seems rather arbitrary to have it in this menu. Wouldn't it make more sense to have it in… | |||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| layout.operator_enum("object.parent_set", "type") | layout.operator_enum("object.parent_set", "type") | ||||
| layout.separator() | layout.separator() | ||||
| ▲ Show 20 Lines • Show All 658 Lines • ▼ Show 20 Lines | class VIEW3D_MT_pose_apply(Menu): | ||||
| bl_label = "Apply" | bl_label = "Apply" | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| layout.operator("pose.armature_apply") | layout.operator("pose.armature_apply") | ||||
| layout.operator("pose.visual_transform_apply") | layout.operator("pose.visual_transform_apply") | ||||
| layout.separator() | |||||
| props = layout.operator("object.assign_property_defaults") | |||||
| props.process_bones = True | |||||
| class VIEW3D_MT_pose_specials(Menu): | class VIEW3D_MT_pose_specials(Menu): | ||||
| bl_label = "Pose Context Menu" | bl_label = "Pose Context Menu" | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| layout.operator_context = 'INVOKE_REGION_WIN' | layout.operator_context = 'INVOKE_REGION_WIN' | ||||
| ▲ Show 20 Lines • Show All 3,118 Lines • Show Last 20 Lines | |||||
It seems rather arbitrary to have it in this menu. Wouldn't it make more sense to have it in the Custom Properties panel in the object properties?
The layout of that panel could perhaps be a bit more similar to others like Vertex Groups, with a (+) button and dropdown menu with various operations on the side.