Pose Library: properly set hard min/max for blend factor

Since rBcommit 74c4977a the pose library blending operator can extrapolate.
This is now also reflected in the hard min/max value of the blend factor
RNA property. The soft min/max are still -1/1 to indicate normal use.
This commit is contained in:
Sybren A. Stüvel
2023-01-05 17:12:54 +01:00
parent b099e9924e
commit 8a65e33d41

View File

@@ -568,8 +568,8 @@ void POSELIB_OT_apply_pose_asset(wmOperatorType *ot)
RNA_def_float_factor(ot->srna,
"blend_factor",
1.0f,
-1.0f,
1.0f,
-FLT_MAX,
FLT_MAX,
"Blend Factor",
"Amount that the pose is applied on top of the existing poses. A negative "
"value will apply the pose flipped over the X-axis",
@@ -608,8 +608,8 @@ void POSELIB_OT_blend_pose_asset(wmOperatorType *ot)
prop = RNA_def_float_factor(ot->srna,
"blend_factor",
0.0f,
-1.0f,
1.0f,
-FLT_MAX,
FLT_MAX,
"Blend Factor",
"Amount that the pose is applied on top of the existing poses. A "
"negative value will apply the pose flipped over the X-axis",