fix [#30729]
authorCampbell Barton <ideasman42@gmail.com>
Fri, 30 Mar 2012 03:33:42 +0000 (03:33 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 30 Mar 2012 03:33:42 +0000 (03:33 +0000)
custom property add/remove wasnt doing an undo push.

release/scripts/startup/bl_operators/wm.py

index 977a4c8cde1b53c5175a8813be7744fcc714916a..198a83c6ea570cbbe81ffcf71b0a00dac4dd4fdc 100644 (file)
@@ -1042,6 +1042,7 @@ class WM_OT_properties_add(Operator):
     '''Internal use (edit a property data_path)'''
     bl_idname = "wm.properties_add"
     bl_label = "Add Property"
+    bl_options = {'UNDO'}
 
     data_path = rna_path
 
@@ -1084,6 +1085,7 @@ class WM_OT_properties_remove(Operator):
     '''Internal use (edit a property data_path)'''
     bl_idname = "wm.properties_remove"
     bl_label = "Remove Property"
+    bl_options = {'UNDO'}
 
     data_path = rna_path
     property = rna_property