Fix second part T50565: Using planar transform once makes it enabled by default
Was caused by property being saved by the operator manager.
This commit is contained in:
parent
856077618a
commit
499faa8b11
Notes:
blender-bot
2023-02-14 10:18:56 +01:00
Referenced by issue #50565, Transform: Planar constraints don't work properly with non-Blender key configurations
|
@ -4781,6 +4781,7 @@ static int manipulator_invoke(bContext *C, wmOperator *op, const wmEvent *event)
|
|||
|
||||
void VIEW3D_OT_manipulator(wmOperatorType *ot)
|
||||
{
|
||||
PropertyRNA *prop;
|
||||
|
||||
/* identifiers */
|
||||
ot->name = "3D Manipulator";
|
||||
|
@ -4795,8 +4796,9 @@ void VIEW3D_OT_manipulator(wmOperatorType *ot)
|
|||
/* properties to pass to transform */
|
||||
Transform_Properties(ot, P_CONSTRAINT);
|
||||
|
||||
RNA_def_boolean(ot->srna, "use_planar_constraint", false, "Planar Constraint", "Limit the transformation to the "
|
||||
"two axes that have not been clicked (translate/scale only)");
|
||||
prop = RNA_def_boolean(ot->srna, "use_planar_constraint", false, "Planar Constraint", "Limit the transformation to the "
|
||||
"two axes that have not been clicked (translate/scale only)");
|
||||
RNA_def_property_flag(prop, PROP_SKIP_SAVE);
|
||||
}
|
||||
|
||||
static int enable_manipulator_invoke(bContext *C, wmOperator *op, const wmEvent *UNUSED(event))
|
||||
|
|
Loading…
Reference in New Issue