diff options
author | Jacques Lucke <jacques@blender.org> | 2021-01-22 14:17:44 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-01-22 14:17:44 +0300 |
commit | 7f96e6ed7e95b660ad3aac2140db4e50c8160693 (patch) | |
tree | ca5f0c35c78d8fbf77696d636f61a0f5631b687c | |
parent | ae4a4307557e80dd75d0d9773862a03b74cbe105 (diff) | |
parent | 6ac0a3d83c8e5a39bd5356aa0d68e3166bd91e82 (diff) |
Merge branch 'blender-v2.92-release'
-rw-r--r-- | source/blender/blenlib/BLI_float2.hh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_float2.hh b/source/blender/blenlib/BLI_float2.hh index 84dd0e358a2..be52969862d 100644 --- a/source/blender/blenlib/BLI_float2.hh +++ b/source/blender/blenlib/BLI_float2.hh @@ -55,6 +55,11 @@ struct float2 { return &x; } + operator float3() const + { + return float3(x, y, 0.0f); + } + float length() const { return len_v2(*this); |