Anim: Remove `OPTYPE_REGISTER` flag from some bone collection operators
Remove the `OPTYPE_REGISTER` flag, to ensure the operators do not pop up their redo panel. The flag is removed where the operator properties are set by Python code, instead of chosen by the user. For example, it doesn't make much sense to change which bone collection is used by the operator by typing the name of another bone collection. This could be revisited when Blender supports "nested enum" properties, to make it possible to choose an item in an entire hierarchy.
This commit is contained in:
parent
c019ad2cfe
commit
a582755321
|
@ -466,7 +466,7 @@ void ARMATURE_OT_collection_assign(wmOperatorType *ot)
|
|||
ot->poll = bone_collection_assign_poll;
|
||||
|
||||
/* flags */
|
||||
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
|
||||
ot->flag = OPTYPE_UNDO;
|
||||
|
||||
/* properties */
|
||||
RNA_def_string(ot->srna,
|
||||
|
@ -624,7 +624,7 @@ void ARMATURE_OT_collection_unassign(wmOperatorType *ot)
|
|||
ot->poll = bone_collection_assign_poll;
|
||||
|
||||
/* flags */
|
||||
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
|
||||
ot->flag = OPTYPE_UNDO;
|
||||
|
||||
RNA_def_string(ot->srna,
|
||||
"name",
|
||||
|
@ -694,7 +694,7 @@ void ARMATURE_OT_collection_unassign_named(wmOperatorType *ot)
|
|||
ot->poll = bone_collection_assign_poll;
|
||||
|
||||
/* flags */
|
||||
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
|
||||
ot->flag = OPTYPE_UNDO;
|
||||
|
||||
RNA_def_string(ot->srna,
|
||||
"name",
|
||||
|
|
Loading…
Reference in New Issue