[Bf-blender-cvs] [658aa007189] master: Build environment: Update OpenSubdiv to 3.4.0 RC 2

Sergey Sharybin noreply at git.blender.org
Thu Jun 27 15:40:03 CEST 2019


Commit: 658aa007189c68bc4edad223fd8303c37d34dda9
Author: Sergey Sharybin
Date:   Thu Jun 27 15:13:18 2019 +0200
Branches: master
https://developer.blender.org/rB658aa007189c68bc4edad223fd8303c37d34dda9

Build environment: Update OpenSubdiv to 3.4.0 RC 2

Newer OpenSubdiv brings fixes and improvements for non-manifold meshes,
which fixes some crashes we've experienced in the recent past when using
Gregory patches.

Additionally, thing new version of OpenSubdiv brings sparse patches,
which allows to multi-thread topology refinement step.

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

M	build_files/build_environment/cmake/opensubdiv.cmake
M	build_files/build_environment/cmake/versions.cmake
D	build_files/build_environment/patches/opensubdiv.diff

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

diff --git a/build_files/build_environment/cmake/opensubdiv.cmake b/build_files/build_environment/cmake/opensubdiv.cmake
index a5cf4efd128..b81170c72b7 100644
--- a/build_files/build_environment/cmake/opensubdiv.cmake
+++ b/build_files/build_environment/cmake/opensubdiv.cmake
@@ -70,7 +70,6 @@ ExternalProject_Add(external_opensubdiv
   DOWNLOAD_DIR ${DOWNLOAD_DIR}
   URL_HASH MD5=${OPENSUBDIV_Hash}
   PREFIX ${BUILD_DIR}/opensubdiv
-  PATCH_COMMAND ${PATCH_CMD} --verbose -p 1 -N -d ${BUILD_DIR}/opensubdiv/src/external_opensubdiv < ${PATCH_DIR}/opensubdiv.diff
   CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${LIBDIR}/opensubdiv -Wno-dev ${DEFAULT_CMAKE_FLAGS} ${OPENSUBDIV_EXTRA_ARGS}
   INSTALL_DIR ${LIBDIR}/opensubdiv
 )
diff --git a/build_files/build_environment/cmake/versions.cmake b/build_files/build_environment/cmake/versions.cmake
index 886dd3a8577..609a8926d2b 100644
--- a/build_files/build_environment/cmake/versions.cmake
+++ b/build_files/build_environment/cmake/versions.cmake
@@ -105,8 +105,8 @@ set(CUEW_GIT_UID 1744972026de9cf27c8a7dc39cf39cd83d5f922f)
 set(CUEW_URI https://github.com/CudaWrangler/cuew/archive/${CUEW_GIT_UID}.zip)
 set(CUEW_HASH 86760d62978ebfd96cd93f5aa1abaf4a)
 
-set(OPENSUBDIV_VERSION v3_3_3)
-set(OPENSUBDIV_Hash 29c79dc01ef616aab02670bed5544ddd)
+set(OPENSUBDIV_VERSION v3_4_0_RC2)
+set(OPENSUBDIV_Hash f6a10ba9efaa82fde86fe65aad346319)
 set(OPENSUBDIV_URI https://github.com/PixarAnimationStudios/OpenSubdiv/archive/${OPENSUBDIV_VERSION}.tar.gz)
 
 set(SDL_VERSION 2.0.8)
diff --git a/build_files/build_environment/patches/opensubdiv.diff b/build_files/build_environment/patches/opensubdiv.diff
deleted file mode 100644
index 3fc78bf3c18..00000000000
--- a/build_files/build_environment/patches/opensubdiv.diff
+++ /dev/null
@@ -1,13 +0,0 @@
-diff --git a/opensubdiv/far/topologyRefiner.cpp b/opensubdiv/far/topologyRefiner.cpp
-index 3754b36e..7fe42bcc 100644
---- a/opensubdiv/far/topologyRefiner.cpp
-+++ b/opensubdiv/far/topologyRefiner.cpp
-@@ -263,7 +263,7 @@ namespace internal {
-         bool IsEmpty() const { return *((int_type*)this) == 0; }
- 
-         FeatureMask() { Clear(); }
--        FeatureMask(Options const & options, Sdc::SchemeType sType) { InitializeFeatures(options, sType); }
-+        FeatureMask(Options const & options, Sdc::SchemeType sType) { Clear(); InitializeFeatures(options, sType); }
- 
-         //  These are the two primary methods intended for use -- intialization via a set of Options
-         //  and reduction of the subsequent feature set (which presumes prior initialization with the
\ No newline at end of file



More information about the Bf-blender-cvs mailing list