Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_image.py
| Context not available. | |||||
| row.prop(tool_settings, "use_proportional_edit", icon_only=True) | row.prop(tool_settings, "use_proportional_edit", icon_only=True) | ||||
| sub = row.row(align=True) | sub = row.row(align=True) | ||||
| sub.active = tool_settings.use_proportional_edit | sub.active = tool_settings.use_proportional_edit | ||||
| sub.prop(tool_settings, "proportional_edit_falloff", icon_only=True) | sub.prop_with_popover( | ||||
| tool_settings, | |||||
| "proportional_edit_falloff", | |||||
| text="", | |||||
| icon_only=True, | |||||
| panel="IMAGE_PT_proportional_edit", | |||||
| ) | |||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| Context not available. | |||||
| if ima.type == 'COMPOSITE' and ima.source in {'MOVIE', 'SEQUENCE'}: | if ima.type == 'COMPOSITE' and ima.source in {'MOVIE', 'SEQUENCE'}: | ||||
| row.operator("image.play_composite", icon='PLAY') | row.operator("image.play_composite", icon='PLAY') | ||||
| class IMAGE_PT_proportional_edit(Panel): | |||||
| bl_space_type = 'IMAGE_EDITOR' | |||||
| bl_region_type = 'HEADER' | |||||
| bl_label = "Proportional Editing" | |||||
| bl_ui_units_x = 8 | |||||
| def draw(self, context): | |||||
| layout = self.layout | |||||
| tool_settings = context.tool_settings | |||||
| col = layout.column() | |||||
| if context.mode != 'OBJECT': | |||||
| col.prop(tool_settings, "draw_proportional_gradient") | |||||
| col.separator() | |||||
| col.prop(tool_settings, "proportional_edit_falloff", expand=True) | |||||
| class MASK_MT_editor_menus(Menu): | class MASK_MT_editor_menus(Menu): | ||||
| bl_idname = "MASK_MT_editor_menus" | bl_idname = "MASK_MT_editor_menus" | ||||
| Context not available. | |||||
| IMAGE_PT_image_properties, | IMAGE_PT_image_properties, | ||||
| IMAGE_UL_render_slots, | IMAGE_UL_render_slots, | ||||
| IMAGE_PT_render_slots, | IMAGE_PT_render_slots, | ||||
| IMAGE_PT_proportional_edit, | |||||
| IMAGE_PT_view_display, | IMAGE_PT_view_display, | ||||
| IMAGE_PT_view_display_uv_edit_overlays, | IMAGE_PT_view_display_uv_edit_overlays, | ||||
| IMAGE_PT_view_display_uv_edit_overlays_stretch, | IMAGE_PT_view_display_uv_edit_overlays_stretch, | ||||
| Context not available. | |||||