[Bf-extensions-cvs] [db91162] master: Adding a couple of missing undo calls to the paint palette addon. Should ave done this a long time ago.

Daniel Salazar noreply at git.blender.org
Tue Dec 2 05:50:07 CET 2014


Commit: db911625d00ee8866a892187320e5360d6a35b5d
Author: Daniel Salazar
Date:   Mon Dec 1 22:49:30 2014 -0600
Branches: master
https://developer.blender.org/rBAdb911625d00ee8866a892187320e5360d6a35b5d

Adding a couple of missing undo calls to the paint palette addon. Should ave done this a long time ago.

===================================================================

M	paint_palette.py

===================================================================

diff --git a/paint_palette.py b/paint_palette.py
index 7c95fd3..c343978 100644
--- a/paint_palette.py
+++ b/paint_palette.py
@@ -369,6 +369,7 @@ class IMAGE_OT_select_color(bpy.types.Operator):
     bl_label = ""
     bl_description = "Select this color"
     bl_idname = "paint.select_color"
+    bl_options = {'UNDO'}
 
 
     color_index = IntProperty()
@@ -487,6 +488,7 @@ class VIEW3D_OT_select_weight(bpy.types.Operator):
     bl_label = ""
     bl_description = "Select this weight"
     bl_idname = "paint.select_weight"
+    bl_options = {'UNDO'}
 
     weight_index = IntProperty()



More information about the Bf-extensions-cvs mailing list