Files
UnrealEngineUWP/Engine/Source/Runtime/PropertyPath
dave jones2 f8e134ef3c UE-148560 - Unable to bind Float variables to certain properties in Widget elements
Since BP floats default to double precision, we need to relax binding requirements. Most UMG widgets uses delegates that expect single-precision floats, so we need to allow float<->double conversion in the UFloatBinding layer. Without this change, we can't bind any new float variables in UMG, which makes the feature fairly useless.

The fix simply updates UFloatBinding::IsSupportedSource to allow double properties. Additionally, when we need to retrieve the underlying value, we need to inspect the property first. If it's a double, we'll perform a cast. Otherwise, it defaults to existing behavior.

#rb patrick.boutot
#preflight 6262f238cf17922036d8d169
#jira UE-148560

#ROBOMERGE-AUTHOR: dave.jones2
#ROBOMERGE-SOURCE: CL 20380365 in //UE5/Release-5.0/... via CL 20383016
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v949-20362246)

[CL 20385730 by dave jones2 in ue5-main branch]
2022-05-26 17:11:05 -04:00
..