Fix T99785: Make Principled Hair IOR input behave like other IOR sliders

Was accidental regression in rBed9b21098dd27bf9364397357f89b4c2648f40c2

Remove the input slider's PROP_FACTOR subtype in favor of the default to
align with other IOR sliders. This provides much better control when
dragging the value with the mouse.

Differential Revision: https://developer.blender.org/D15477
This commit is contained in:
Jesse Yurkovich 2022-07-18 20:37:11 -07:00 committed by Thomas Dinges
parent c82e9d4ec8
commit 22d276a5dc
Notes: blender-bot 2023-02-14 08:24:03 +01:00
Referenced by issue #99785, Principled hair BSDF IOR slider inconsistency
Referenced by issue #98661, 3.2: Potential candidates for corrective releases
1 changed files with 1 additions and 2 deletions

View File

@ -42,8 +42,7 @@ static void node_declare(NodeDeclarationBuilder &b)
.min(0.0f)
.max(1.0f)
.subtype(PROP_FACTOR);
b.add_input<decl::Float>(N_("IOR")).default_value(1.55f).min(0.0f).max(1000.0f).subtype(
PROP_FACTOR);
b.add_input<decl::Float>(N_("IOR")).default_value(1.55f).min(0.0f).max(1000.0f);
b.add_input<decl::Float>(N_("Offset"))
.default_value(2.0f * ((float)M_PI) / 180.0f)
.min(-M_PI_2)