GPv3: Cyclical set operator #111904
@ -4611,7 +4611,7 @@ def km_grease_pencil_edit(params):
|
||||
# Keyframe Menu
|
||||
op_menu("VIEW3D_MT_edit_greasepencil_animation", {"type": 'I', "value": 'PRESS'}),
|
||||
# Cyclical set
|
||||
("grease_pencil.cyclical_set", {"type": 'F', "value": 'PRESS'}, {"properties": [("type", "CLOSE"), ("geometry", True)]}),
|
||||
("grease_pencil.cyclical_set", {"type": 'F', "value": 'PRESS'}, {"properties": [("type", "CLOSE")]}),
|
||||
("grease_pencil.cyclical_set", {"type": 'C', "value": 'PRESS', "alt": True}, {"properties": [("type", "TOGGLE")]}),
|
||||
])
|
||||
|
||||
|
@ -872,8 +872,6 @@ static int grease_pencil_cyclical_set_exec(bContext *C, wmOperator *op)
|
||||
|
||||
static void GREASE_PENCIL_OT_cyclical_set(wmOperatorType *ot)
|
||||
{
|
||||
PropertyRNA *prop;
|
||||
|
||||
/* Identifiers. */
|
||||
ot->name = "Set Cyclical State";
|
||||
ot->idname = "GREASE_PENCIL_OT_cyclical_set";
|
||||
@ -889,7 +887,6 @@ static void GREASE_PENCIL_OT_cyclical_set(wmOperatorType *ot)
|
||||
/* Simplify parameters. */
|
||||
ot->prop = RNA_def_enum(
|
||||
ot->srna, "type", prop_cyclical_types, int(CyclicalMode::TOGGLE), "Type", "");
|
||||
RNA_def_property_flag(prop, PROP_SKIP_SAVE);
|
||||
}
|
||||
|
||||
/** \} */
|
||||
|
Loading…
Reference in New Issue
Block a user