UI: hide redo panel for move up/down operators
This commit is contained in:
@@ -613,8 +613,11 @@ static bool edit_constraint_poll(bContext *C)
|
||||
|
||||
static void edit_constraint_properties(wmOperatorType *ot)
|
||||
{
|
||||
RNA_def_string(ot->srna, "constraint", NULL, MAX_NAME, "Constraint", "Name of the constraint to edit");
|
||||
RNA_def_enum(ot->srna, "owner", constraint_owner_items, 0, "Owner", "The owner of this constraint");
|
||||
PropertyRNA *prop;
|
||||
prop = RNA_def_string(ot->srna, "constraint", NULL, MAX_NAME, "Constraint", "Name of the constraint to edit");
|
||||
RNA_def_property_flag(prop, PROP_HIDDEN);
|
||||
prop = RNA_def_enum(ot->srna, "owner", constraint_owner_items, 0, "Owner", "The owner of this constraint");
|
||||
RNA_def_property_flag(prop, PROP_HIDDEN);
|
||||
}
|
||||
|
||||
static int edit_constraint_invoke_properties(bContext *C, wmOperator *op)
|
||||
|
||||
@@ -393,7 +393,8 @@ static bool gpencil_edit_modifier_poll(bContext *C)
|
||||
|
||||
static void gpencil_edit_modifier_properties(wmOperatorType *ot)
|
||||
{
|
||||
RNA_def_string(ot->srna, "modifier", NULL, MAX_NAME, "Modifier", "Name of the modifier to edit");
|
||||
PropertyRNA *prop = RNA_def_string(ot->srna, "modifier", NULL, MAX_NAME, "Modifier", "Name of the modifier to edit");
|
||||
RNA_def_property_flag(prop, PROP_HIDDEN);
|
||||
}
|
||||
|
||||
static int gpencil_edit_modifier_invoke_properties(bContext *C, wmOperator *op)
|
||||
|
||||
@@ -846,7 +846,8 @@ bool edit_modifier_poll(bContext *C)
|
||||
|
||||
void edit_modifier_properties(wmOperatorType *ot)
|
||||
{
|
||||
RNA_def_string(ot->srna, "modifier", NULL, MAX_NAME, "Modifier", "Name of the modifier to edit");
|
||||
PropertyRNA *prop = RNA_def_string(ot->srna, "modifier", NULL, MAX_NAME, "Modifier", "Name of the modifier to edit");
|
||||
RNA_def_property_flag(prop, PROP_HIDDEN);
|
||||
}
|
||||
|
||||
int edit_modifier_invoke_properties(bContext *C, wmOperator *op)
|
||||
|
||||
@@ -315,7 +315,8 @@ static bool edit_shaderfx_poll(bContext *C)
|
||||
|
||||
static void edit_shaderfx_properties(wmOperatorType *ot)
|
||||
{
|
||||
RNA_def_string(ot->srna, "shaderfx", NULL, MAX_NAME, "Shader", "Name of the shaderfx to edit");
|
||||
PropertyRNA *prop = RNA_def_string(ot->srna, "shaderfx", NULL, MAX_NAME, "Shader", "Name of the shaderfx to edit");
|
||||
RNA_def_property_flag(prop, PROP_HIDDEN);
|
||||
}
|
||||
|
||||
static int edit_shaderfx_invoke_properties(bContext *C, wmOperator *op)
|
||||
|
||||
Reference in New Issue
Block a user