Fix bug [#30953] Changing brush preset irreversibly undoes things
authorNicholas Bishop <nicholasbishop@gmail.com>
Sun, 15 Apr 2012 14:54:01 +0000 (14:54 +0000)
committerNicholas Bishop <nicholasbishop@gmail.com>
Sun, 15 Apr 2012 14:54:01 +0000 (14:54 +0000)
Remove REGISTER/UNDO flags from brush preset operator.

source/blender/editors/sculpt_paint/paint_utils.c

index 6a31e96b51b0ca489fb499796d84eb6390fb78f2..89a46272a8f80feefa42188c0bec55da2ec22638 100644 (file)
@@ -388,8 +388,6 @@ void BRUSH_OT_curve_preset(wmOperatorType *ot)
        ot->exec = brush_curve_preset_exec;
        ot->poll = brush_curve_preset_poll;
 
-       ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
-
        RNA_def_enum(ot->srna, "shape", prop_shape_items, CURVE_PRESET_SMOOTH, "Mode", "");
 }