forked from bartvdbraak/blender
Fix T47016: curve tilt value in N (redo) panel to much precise with mouse dragging.
Let's just use dafaults of angle props here. :)
This commit is contained in:
parent
6703c1df4e
commit
7ac5f2fef6
@ -684,8 +684,6 @@ static void TRANSFORM_OT_rotate(struct wmOperatorType *ot)
|
|||||||
|
|
||||||
static void TRANSFORM_OT_tilt(struct wmOperatorType *ot)
|
static void TRANSFORM_OT_tilt(struct wmOperatorType *ot)
|
||||||
{
|
{
|
||||||
PropertyRNA *prop;
|
|
||||||
|
|
||||||
/* identifiers */
|
/* identifiers */
|
||||||
ot->name = "Tilt";
|
ot->name = "Tilt";
|
||||||
/* optionals -
|
/* optionals -
|
||||||
@ -702,8 +700,7 @@ static void TRANSFORM_OT_tilt(struct wmOperatorType *ot)
|
|||||||
ot->cancel = transform_cancel;
|
ot->cancel = transform_cancel;
|
||||||
ot->poll = ED_operator_editcurve_3d;
|
ot->poll = ED_operator_editcurve_3d;
|
||||||
|
|
||||||
prop = RNA_def_float(ot->srna, "value", 0.0, -FLT_MAX, FLT_MAX, "Angle", "", -M_PI * 2, M_PI * 2);
|
RNA_def_float_rotation(ot->srna, "value", 0, NULL, -FLT_MAX, FLT_MAX, "Angle", "", -M_PI * 2, M_PI * 2);
|
||||||
RNA_def_property_subtype(prop, PROP_ANGLE);
|
|
||||||
|
|
||||||
Transform_Properties(ot, P_PROPORTIONAL | P_MIRROR | P_SNAP);
|
Transform_Properties(ot, P_PROPORTIONAL | P_MIRROR | P_SNAP);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user