diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-05-26 13:57:17 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-05-26 13:57:17 +0400 |
commit | 7a7c13e2e7118304a7fe936d0b6c2f8e9a8cad53 (patch) | |
tree | 23a90d13d5034a7baeb1eba1f597eabf3a029911 /paint_palette.py | |
parent | 56a8c5f8a4da28b3e808e28c6875043a573b5d9b (diff) |
patch [#31578] Standard-conformal sets for .report() and operator return values
from Sebastian Nell (codemanx)
Diffstat (limited to 'paint_palette.py')
-rw-r--r-- | paint_palette.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/paint_palette.py b/paint_palette.py index 8cdc0e14..5cd86a0d 100644 --- a/paint_palette.py +++ b/paint_palette.py @@ -328,7 +328,7 @@ class PALETTE_OT_add_color(bpy.types.Operator): pp.current_color_index = new_index sample() update_panels() - return {"FINISHED"} + return {'FINISHED'} class PALETTE_OT_remove_color(bpy.types.Operator): @@ -349,7 +349,7 @@ class PALETTE_OT_remove_color(bpy.types.Operator): if pp.current_color_index >= pp.colors.__len__(): pp.index = pp.current_color_index = pp.colors.__len__() - 1 - return {"FINISHED"} + return {'FINISHED'} class PALETTE_OT_sample_tool_color(bpy.types.Operator): @@ -361,7 +361,7 @@ class PALETTE_OT_sample_tool_color(bpy.types.Operator): pp = bpy.context.scene.palette_props brush = current_brush() pp.colors[pp.current_color_index].color = brush.color - return {"FINISHED"} + return {'FINISHED'} class IMAGE_OT_select_color(bpy.types.Operator): @@ -377,7 +377,7 @@ class IMAGE_OT_select_color(bpy.types.Operator): palette_props.current_color_index = self.color_index update_panels() - return {"FINISHED"} + return {'FINISHED'} def color_palette_draw(self, context): @@ -543,7 +543,7 @@ class VIEW3D_OT_select_weight(bpy.types.Operator): weight = palette_props.weight_10 palette_props.weight = weight #bpy.context.tool_settings.vertex_group_weight = weight - return {"FINISHED"} + return {'FINISHED'} class VIEW3D_OT_reset_weight_palette(bpy.types.Operator): @@ -597,7 +597,7 @@ class VIEW3D_OT_reset_weight_palette(bpy.types.Operator): if palette_props.current_weight_index == 10: palette_props.weight = 1.0 palette_props.weight_10 = 1.0 - return {"FINISHED"} + return {'FINISHED'} class VIEW3D_PT_weight_palette(PaintPanel, bpy.types.Panel): bl_label = "Weight Palette" |