patch [#24251] Add missing tooltips for image operatios

from Sergej Reich (sergof), with minor edits.
This commit is contained in:
Campbell Barton 2010-10-15 08:41:58 +00:00
parent 7a535ed3d9
commit 9f81104b29
2 changed files with 5 additions and 5 deletions

@ -88,7 +88,7 @@ class EditExternally(bpy.types.Operator):
class SaveDirty(bpy.types.Operator):
'''Select object matching a naming pattern'''
"""Save all modified textures"""
bl_idname = "image.save_dirty"
bl_label = "Save Dirty"
bl_options = {'REGISTER', 'UNDO'}
@ -109,7 +109,7 @@ class SaveDirty(bpy.types.Operator):
class ProjectEdit(bpy.types.Operator):
'''Select object matching a naming pattern'''
"""Edit a snapshot if the viewport in an external image editor"""
bl_idname = "image.project_edit"
bl_label = "Project Edit"
bl_options = {'REGISTER'}
@ -174,7 +174,7 @@ class ProjectEdit(bpy.types.Operator):
class ProjectApply(bpy.types.Operator):
'''Select object matching a naming pattern'''
"""Project edited image back onto the object"""
bl_idname = "image.project_apply"
bl_label = "Project Apply"
bl_options = {'REGISTER'}

@ -235,7 +235,7 @@ def write_png(fw, mesh_source, image_width, image_height, face_iter):
class ExportUVLayout(bpy.types.Operator):
'''Export the Mesh as SVG'''
"""Export UV layout to file"""
bl_idname = "uv.export_layout"
bl_label = "Export UV Layout"
@ -251,7 +251,7 @@ class ExportUVLayout(bpy.types.Operator):
name="Format",
description="File format to export the UV layout to",
default='PNG')
size = IntVectorProperty(size=2, default=(1024, 1024), min=8, max=32768)
size = IntVectorProperty(size=2, default=(1024, 1024), min=8, max=32768, description="Dimensions of the exported file")
@classmethod
def poll(cls, context):