Fix T38853: right click menu add driver should not be possible to redo.
This was already disabled for the keyframing operators, needs to be done for drivers as well as this doesn't work.
This commit is contained in:
parent
0fa832bed2
commit
c4eab10e5c
Notes:
blender-bot
2023-02-14 11:07:18 +01:00
Referenced by issue #38853, Add Driver operator property All.
|
@ -544,7 +544,7 @@ void ANIM_OT_driver_button_add(wmOperatorType *ot)
|
|||
//op->poll = ??? // TODO: need to have some animatable property to do this
|
||||
|
||||
/* flags */
|
||||
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO | OPTYPE_INTERNAL;
|
||||
ot->flag = OPTYPE_UNDO | OPTYPE_INTERNAL;
|
||||
|
||||
/* properties */
|
||||
RNA_def_boolean(ot->srna, "all", 1, "All", "Create drivers for all elements of the array");
|
||||
|
@ -595,7 +595,7 @@ void ANIM_OT_driver_button_remove(wmOperatorType *ot)
|
|||
//op->poll = ??? // TODO: need to have some driver to be able to do this...
|
||||
|
||||
/* flags */
|
||||
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO | OPTYPE_INTERNAL;
|
||||
ot->flag = OPTYPE_UNDO | OPTYPE_INTERNAL;
|
||||
|
||||
/* properties */
|
||||
RNA_def_boolean(ot->srna, "all", 1, "All", "Delete drivers for all elements of the array");
|
||||
|
@ -642,7 +642,7 @@ void ANIM_OT_copy_driver_button(wmOperatorType *ot)
|
|||
//op->poll = ??? // TODO: need to have some driver to be able to do this...
|
||||
|
||||
/* flags */
|
||||
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO | OPTYPE_INTERNAL;
|
||||
ot->flag = OPTYPE_UNDO | OPTYPE_INTERNAL;
|
||||
}
|
||||
|
||||
/* Paste Driver Button Operator ------------------------ */
|
||||
|
@ -686,7 +686,7 @@ void ANIM_OT_paste_driver_button(wmOperatorType *ot)
|
|||
//op->poll = ??? // TODO: need to have some driver to be able to do this...
|
||||
|
||||
/* flags */
|
||||
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO | OPTYPE_INTERNAL;
|
||||
ot->flag = OPTYPE_UNDO | OPTYPE_INTERNAL;
|
||||
}
|
||||
|
||||
/* ************************************************** */
|
||||
|
|
Loading…
Reference in New Issue