[Bf-extensions-cvs] [cb588a96] master: Bool Tool: Fix missing undo push

Mikhail Rachinskiy noreply at git.blender.org
Wed Mar 20 09:03:01 CET 2019


Commit: cb588a96fdff07a83ce64fcb49c6326657662622
Author: Mikhail Rachinskiy
Date:   Wed Mar 20 12:02:45 2019 +0400
Branches: master
https://developer.blender.org/rBAcb588a96fdff07a83ce64fcb49c6326657662622

Bool Tool: Fix missing undo push

D4545 by Addison Miller

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

M	object_boolean_tools.py

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

diff --git a/object_boolean_tools.py b/object_boolean_tools.py
index e5688085..ded30a1a 100644
--- a/object_boolean_tools.py
+++ b/object_boolean_tools.py
@@ -477,6 +477,7 @@ class BTool_Union(Operator):
     bl_idname = "btool.boolean_union"
     bl_label = "Brush Union"
     bl_description = "This operator add a union brush to a canvas"
+    bl_options = {"REGISTER", "UNDO"}
 
     @classmethod
     def poll(cls, context):
@@ -492,6 +493,7 @@ class BTool_Inters(Operator):
     bl_idname = "btool.boolean_inters"
     bl_label = "Brush Intersection"
     bl_description = "This operator add a intersect brush to a canvas"
+    bl_options = {"REGISTER", "UNDO"}
 
     @classmethod
     def poll(cls, context):
@@ -507,6 +509,7 @@ class BTool_Diff(Operator):
     bl_idname = "btool.boolean_diff"
     bl_label = "Brush Difference"
     bl_description = "This operator add a difference brush to a canvas"
+    bl_options = {"REGISTER", "UNDO"}
 
     @classmethod
     def poll(cls, context):
@@ -522,6 +525,7 @@ class BTool_Slice(Operator):
     bl_idname = "btool.boolean_slice"
     bl_label = "Brush Slice"
     bl_description = "This operator add a intersect brush to a canvas"
+    bl_options = {"REGISTER", "UNDO"}
 
     @classmethod
     def poll(cls, context):
@@ -747,7 +751,7 @@ class BTool_EnableFTransform(Operator):
 # Remove a Brush or a Canvas
 class BTool_Remove(Operator):
     bl_idname = "btool.remove"
-    bl_label = ""
+    bl_label = "Bool Tool Remove"
     bl_description = "Removes all BoolTool config assigned to it"
     bl_options = {"UNDO"}



More information about the Bf-extensions-cvs mailing list