[Bf-blender-cvs] [9fc5a9c78f5] master: macOS: Fix build error due to std::optional<T>::value

Ankit Meel noreply at git.blender.org
Wed Nov 24 13:12:14 CET 2021


Commit: 9fc5a9c78f57f11d72ab6dbaf819945c862367e1
Author: Ankit Meel
Date:   Wed Nov 24 17:41:37 2021 +0530
Branches: master
https://developer.blender.org/rB9fc5a9c78f57f11d72ab6dbaf819945c862367e1

macOS: Fix build error due to std::optional<T>::value

===================================================================

M	source/blender/editors/animation/keyframes_keylist_test.cc

===================================================================

diff --git a/source/blender/editors/animation/keyframes_keylist_test.cc b/source/blender/editors/animation/keyframes_keylist_test.cc
index 012e087c9d8..17a21be5ae8 100644
--- a/source/blender/editors/animation/keyframes_keylist_test.cc
+++ b/source/blender/editors/animation/keyframes_keylist_test.cc
@@ -52,7 +52,7 @@ static void assert_act_key_column(const ActKeyColumn *column,
 {
   if (expected_frame.has_value()) {
     EXPECT_NE(column, nullptr);
-    EXPECT_NEAR(column->cfra, expected_frame.value(), KEYLIST_NEAR_ERROR);
+    EXPECT_NEAR(column->cfra, *expected_frame, KEYLIST_NEAR_ERROR);
   }
   else {
     EXPECT_EQ(column, nullptr);



More information about the Bf-blender-cvs mailing list