[Bf-blender-cvs] [bbd0c4118bb] master: Fix: Build issue with MSVC

Ray Molenkamp noreply at git.blender.org
Tue Jan 4 15:15:55 CET 2022


Commit: bbd0c4118bb782947962bbf15e05421d186c87a4
Author: Ray Molenkamp
Date:   Tue Jan 4 07:15:51 2022 -0700
Branches: master
https://developer.blender.org/rBbbd0c4118bb782947962bbf15e05421d186c87a4

Fix: Build issue with MSVC

std::min was used without including the algorithm
header. Seems to be implicitly included by
something in newer MSVC versions and GCC, however
vs16.4 needed a little help here.

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

M	intern/opensubdiv/internal/evaluator/patch_map.cc

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

diff --git a/intern/opensubdiv/internal/evaluator/patch_map.cc b/intern/opensubdiv/internal/evaluator/patch_map.cc
index 2ebdb922326..1b10c1118b9 100644
--- a/intern/opensubdiv/internal/evaluator/patch_map.cc
+++ b/intern/opensubdiv/internal/evaluator/patch_map.cc
@@ -23,6 +23,7 @@
 // Modifications copyright 2021 Blender Foundation. All rights reserved.
 
 #include "internal/evaluator/patch_map.h"
+#include <algorithm>
 
 using OpenSubdiv::Far::ConstPatchParamArray;
 using OpenSubdiv::Far::Index;



More information about the Bf-blender-cvs mailing list