Merge branch 'master' into blender2.8
authorCampbell Barton <ideasman42@gmail.com>
Tue, 14 Aug 2018 07:12:41 +0000 (17:12 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 14 Aug 2018 07:12:41 +0000 (17:12 +1000)
build_files/build_environment/cmake/harvest.cmake
build_files/build_environment/cmake/opencollada.cmake
build_files/build_environment/cmake/opensubdiv.cmake
build_files/build_environment/cmake/sdl.cmake
build_files/build_environment/cmake/tbb.cmake
build_files/build_environment/cmake/versions.cmake
build_files/build_environment/patches/opensubdiv.diff
build_files/build_environment/patches/sdl.diff
source/blender/editors/space_view3d/view3d_select.c

index b5b9eef7bb206c132a4d3fd32c8f5a0dbd4f8e1c..86d207e74690c6820d785d9f519e3a7c8b375c6f 100644 (file)
@@ -34,10 +34,6 @@ if(BUILD_MODE STREQUAL Release)
                                # pthreads, rename include dir
                                ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/pthreads/inc/ ${HARVEST_TARGET}/pthreads/include/ &&
                                ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/pthreads/lib/ ${HARVEST_TARGET}/pthreads/lib &&
-                               # sdl merge bin/lib folder, copy include
-                               ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/sdl/include/sdl2 ${HARVEST_TARGET}/sdl/include &&
-                               ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/sdl/lib ${HARVEST_TARGET}/sdl/lib &&
-                               ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/sdl/bin ${HARVEST_TARGET}/sdl/lib &&
                                # OpenImageIO
                                ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/OpenImageIO/include ${HARVEST_TARGET}/OpenImageIO/include &&
                                ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/OpenImageIO/lib ${HARVEST_TARGET}/OpenImageIO/lib &&
@@ -65,13 +61,6 @@ if(BUILD_MODE STREQUAL Release)
                                ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/osl/ ${HARVEST_TARGET}/osl &&
                                # OpenVDB
                                ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/openVDB/ ${HARVEST_TARGET}/openVDB &&
-                               # tbb
-                               ${CMAKE_COMMAND} -E copy ${LIBDIR}/tbb/lib/tbb_static.lib ${HARVEST_TARGET}/tbb/lib/tbb.lib &&
-                               ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/tbb/include/ ${HARVEST_TARGET}/tbb/include/ &&
-                               # opencollada
-                               ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/opencollada/ ${HARVEST_TARGET}/opencollada/ &&
-                               # opensubdiv
-                               ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/opensubdiv ${HARVEST_TARGET}/opensubdiv &&
                                # BlendThumb
                                ${CMAKE_COMMAND} -E copy ${LIBDIR}/BlendThumb64/bin/blendthumb.dll ${HARVEST_TARGET}/ThumbHandler/lib/BlendThumb64.dll &&
                                ${CMAKE_COMMAND} -E copy ${LIBDIR}/BlendThumb32/bin/blendthumb.dll ${HARVEST_TARGET}/ThumbHandler/lib/BlendThumb.dll &&
@@ -88,27 +77,10 @@ if(BUILD_MODE STREQUAL Debug)
                                # OpenImageIO
                COMMAND ${CMAKE_COMMAND} -E copy ${LIBDIR}/openimageio/lib/OpenImageIO.lib ${HARVEST_TARGET}/openimageio/lib/OpenImageIO_d.lib &&
                                ${CMAKE_COMMAND} -E copy ${LIBDIR}/openimageio/lib/OpenImageIO_Util.lib ${HARVEST_TARGET}/openimageio/lib/OpenImageIO_Util_d.lib &&
-                               # opencollada
-                               ${CMAKE_COMMAND} -E copy ${LIBDIR}/opencollada/lib/opencollada/buffer.lib ${HARVEST_TARGET}/opencollada/lib/opencollada/buffer_d.lib &&
-                               ${CMAKE_COMMAND} -E copy ${LIBDIR}/opencollada/lib/opencollada/ftoa.lib ${HARVEST_TARGET}/opencollada/lib/opencollada/ftoa_d.lib &&
-                               ${CMAKE_COMMAND} -E copy ${LIBDIR}/opencollada/lib/opencollada/GeneratedSaxParser.lib ${HARVEST_TARGET}/opencollada/lib/opencollada/GeneratedSaxParser_d.lib &&
-                               ${CMAKE_COMMAND} -E copy ${LIBDIR}/opencollada/lib/opencollada/MathMLSolver.lib ${HARVEST_TARGET}/opencollada/lib/opencollada/MathMLSolver_d.lib &&
-                               ${CMAKE_COMMAND} -E copy ${LIBDIR}/opencollada/lib/opencollada/OpenCOLLADABaseUtils.lib ${HARVEST_TARGET}/opencollada/lib/opencollada/OpenCOLLADABaseUtils_d.lib &&
-                               ${CMAKE_COMMAND} -E copy ${LIBDIR}/opencollada/lib/opencollada/OpenCOLLADAFramework.lib ${HARVEST_TARGET}/opencollada/lib/opencollada/OpenCOLLADAFramework_d.lib &&
-                               ${CMAKE_COMMAND} -E copy ${LIBDIR}/opencollada/lib/opencollada/OpenCOLLADASaxFrameworkLoader.lib ${HARVEST_TARGET}/opencollada/lib/opencollada/OpenCOLLADASaxFrameworkLoader_d.lib &&
-                               ${CMAKE_COMMAND} -E copy ${LIBDIR}/opencollada/lib/opencollada/OpenCOLLADAStreamWriter.lib ${HARVEST_TARGET}/opencollada/lib/opencollada/OpenCOLLADAStreamWriter_d.lib &&
-                               ${CMAKE_COMMAND} -E copy ${LIBDIR}/opencollada/lib/opencollada/pcre.lib ${HARVEST_TARGET}/opencollada/lib/opencollada/pcre_d.lib &&
-                               ${CMAKE_COMMAND} -E copy ${LIBDIR}/opencollada/lib/opencollada/UTF.lib ${HARVEST_TARGET}/opencollada/lib/opencollada/UTF_d.lib &&
-                               ${CMAKE_COMMAND} -E copy ${LIBDIR}/opencollada/lib/opencollada/xml.lib ${HARVEST_TARGET}/opencollada/lib/opencollada/xml_d.lib &&
                                # osl
                                ${CMAKE_COMMAND} -E copy ${LIBDIR}/osl/lib/oslcomp.lib ${HARVEST_TARGET}/osl/lib/oslcomp_d.lib &&
                                ${CMAKE_COMMAND} -E copy ${LIBDIR}/osl/lib/oslexec.lib ${HARVEST_TARGET}/osl/lib/oslexec_d.lib &&
                                ${CMAKE_COMMAND} -E copy ${LIBDIR}/osl/lib/oslquery.lib ${HARVEST_TARGET}/osl/lib/oslquery_d.lib &&
-                               # opensubdiv
-                               ${CMAKE_COMMAND} -E copy ${LIBDIR}/opensubdiv/lib/osdCPU.lib ${HARVEST_TARGET}/opensubdiv/lib/osdCPU_d.lib &&
-                               ${CMAKE_COMMAND} -E copy ${LIBDIR}/opensubdiv/lib/osdGPU.lib ${HARVEST_TARGET}/opensubdiv/lib/osdGPU_d.lib &&
-                               # tbb
-                               ${CMAKE_COMMAND} -E copy ${LIBDIR}/tbb/lib/tbb_static.lib ${HARVEST_TARGET}/tbb/lib/tbb_debug.lib &&
                                # openvdb
                                ${CMAKE_COMMAND} -E copy ${LIBDIR}/openvdb/lib/openvdb.lib ${HARVEST_TARGET}/openvdb/lib/openvdb_d.lib &&
                                # python
index 3872b08ced22de38a350bd25075157d886c1a753..2f5360ba958ff1ba2e09ad4bd5aa12d645d0911a 100644 (file)
@@ -38,3 +38,28 @@ if(UNIX AND NOT APPLE)
                external_xml2
        )
 endif()
+
+if(WIN32)
+       if(BUILD_MODE STREQUAL Release)
+               ExternalProject_Add_Step(external_opencollada after_install
+                       COMMAND ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/opencollada/ ${HARVEST_TARGET}/opencollada/
+                       DEPENDEES install
+               )
+       endif()
+       if(BUILD_MODE STREQUAL Debug)
+               ExternalProject_Add_Step(external_opencollada after_install
+                       COMMAND ${CMAKE_COMMAND} -E copy ${LIBDIR}/opencollada/lib/opencollada/buffer.lib ${HARVEST_TARGET}/opencollada/lib/opencollada/buffer_d.lib 
+                       COMMAND ${CMAKE_COMMAND} -E copy ${LIBDIR}/opencollada/lib/opencollada/ftoa.lib ${HARVEST_TARGET}/opencollada/lib/opencollada/ftoa_d.lib
+                       COMMAND ${CMAKE_COMMAND} -E copy ${LIBDIR}/opencollada/lib/opencollada/GeneratedSaxParser.lib ${HARVEST_TARGET}/opencollada/lib/opencollada/GeneratedSaxParser_d.lib
+                       COMMAND ${CMAKE_COMMAND} -E copy ${LIBDIR}/opencollada/lib/opencollada/MathMLSolver.lib ${HARVEST_TARGET}/opencollada/lib/opencollada/MathMLSolver_d.lib
+                       COMMAND ${CMAKE_COMMAND} -E copy ${LIBDIR}/opencollada/lib/opencollada/OpenCOLLADABaseUtils.lib ${HARVEST_TARGET}/opencollada/lib/opencollada/OpenCOLLADABaseUtils_d.lib
+                       COMMAND ${CMAKE_COMMAND} -E copy ${LIBDIR}/opencollada/lib/opencollada/OpenCOLLADAFramework.lib ${HARVEST_TARGET}/opencollada/lib/opencollada/OpenCOLLADAFramework_d.lib
+                       COMMAND ${CMAKE_COMMAND} -E copy ${LIBDIR}/opencollada/lib/opencollada/OpenCOLLADASaxFrameworkLoader.lib ${HARVEST_TARGET}/opencollada/lib/opencollada/OpenCOLLADASaxFrameworkLoader_d.lib
+                       COMMAND ${CMAKE_COMMAND} -E copy ${LIBDIR}/opencollada/lib/opencollada/OpenCOLLADAStreamWriter.lib ${HARVEST_TARGET}/opencollada/lib/opencollada/OpenCOLLADAStreamWriter_d.lib
+                       COMMAND ${CMAKE_COMMAND} -E copy ${LIBDIR}/opencollada/lib/opencollada/pcre.lib ${HARVEST_TARGET}/opencollada/lib/opencollada/pcre_d.lib
+                       COMMAND ${CMAKE_COMMAND} -E copy ${LIBDIR}/opencollada/lib/opencollada/UTF.lib ${HARVEST_TARGET}/opencollada/lib/opencollada/UTF_d.lib
+                       COMMAND ${CMAKE_COMMAND} -E copy ${LIBDIR}/opencollada/lib/opencollada/xml.lib ${HARVEST_TARGET}/opencollada/lib/opencollada/xml_d.lib
+                       DEPENDEES install
+               )
+       endif()
+endif()
\ No newline at end of file
index 930ef4e6ed3a7ad09fdee34ff00a9ee73df824f5..1db3b11de9a6708f4a111abbdaf74eaada1270a6 100644 (file)
@@ -33,16 +33,11 @@ set(OPENSUBDIV_EXTRA_ARGS
 )
 
 if(WIN32)
-       #no cuda support for vc15 yet
-       if(msvc15)
-               set(OPENSUBDIV_CUDA ON)
-       else()
-               set(OPENSUBDIV_CUDA ON)
-       endif()
-
        set(OPENSUBDIV_EXTRA_ARGS
                ${OPENSUBDIV_EXTRA_ARGS}
-               -DNO_CUDA=${OPENSUBDIV_CUDA}
+               -DNO_CUDA=Off
+               -DTBB_INCLUDE_DIR=${LIBDIR}/tbb/include
+               -DTBB_LIBRARIES=${LIBDIR}/tbb/lib/tbb_static.lib
                -DCLEW_INCLUDE_DIR=${LIBDIR}/clew/include/CL
                -DCLEW_LIBRARY=${LIBDIR}/clew/lib/clew${LIBEXT}
                -DCUEW_INCLUDE_DIR=${LIBDIR}/cuew/include
@@ -69,10 +64,28 @@ ExternalProject_Add(external_opensubdiv
        INSTALL_DIR ${LIBDIR}/opensubdiv
 )
 
+if(WIN32)
+       if(BUILD_MODE STREQUAL Release)
+               ExternalProject_Add_Step(external_opensubdiv after_install
+                       COMMAND ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/opensubdiv/lib ${HARVEST_TARGET}/opensubdiv/lib
+                       COMMAND ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/opensubdiv/include ${HARVEST_TARGET}/opensubdiv/include
+                       DEPENDEES install
+               )
+       endif()
+       if(BUILD_MODE STREQUAL Debug)
+               ExternalProject_Add_Step(external_opensubdiv after_install
+                       COMMAND ${CMAKE_COMMAND} -E copy ${LIBDIR}/opensubdiv/lib/osdCPU.lib ${HARVEST_TARGET}/opensubdiv/lib/osdCPU_d.lib
+                       COMMAND ${CMAKE_COMMAND} -E copy ${LIBDIR}/opensubdiv/lib/osdGPU.lib ${HARVEST_TARGET}/opensubdiv/lib/osdGPU_d.lib
+                       DEPENDEES install
+               )
+       endif() 
+endif()
+
 add_dependencies(
        external_opensubdiv
        external_glew
        external_glfw
        external_clew
        external_cuew
+       external_tbb
 )
index 0fbfa078eb1b9c64983f43dc8b704a00cf4c50a8..4e32245f81fbd1d4011bc4a2770663cc9718f482 100644 (file)
@@ -37,3 +37,13 @@ ExternalProject_Add(external_sdl
        CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${LIBDIR}/sdl ${DEFAULT_CMAKE_FLAGS} ${SDL_EXTRA_ARGS}
        INSTALL_DIR ${LIBDIR}/sdl
 )
+
+if(BUILD_MODE STREQUAL Release AND WIN32)
+       ExternalProject_Add_Step(external_sdl after_install
+               COMMAND ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/sdl/include/sdl2 ${HARVEST_TARGET}/sdl/include
+               COMMAND ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/sdl/lib ${HARVEST_TARGET}/sdl/lib
+               COMMAND ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/sdl/bin ${HARVEST_TARGET}/sdl/lib
+               DEPENDEES install
+       )
+endif()
+
index fa5c9029ed06891bb08f39db62600e7ab25e1508..4e0357da8bbd114de6d9d661fa87ffc40bbfb311 100644 (file)
@@ -23,14 +23,6 @@ set(TBB_EXTRA_ARGS
        -DTBB_BUILD_STATIC=On
 )
 
-if(TBB_VERSION MATCHES 2018)
-       set(TBB_VS_VERSION vs2013)
-elseif(TBB_VERSION MATCHES 2017)
-       set(TBB_VS_VERSION vs2012)
-else()
-       set(TBB_VS_VERSION vs2010)
-endif()
-
 # CMake script for TBB from https://github.com/wjakob/tbb/blob/master/CMakeLists.txt
 ExternalProject_Add(external_tbb
        URL ${TBB_URI}
@@ -38,7 +30,23 @@ ExternalProject_Add(external_tbb
        URL_HASH MD5=${TBB_HASH}
        PREFIX ${BUILD_DIR}/tbb
        PATCH_COMMAND COMMAND ${CMAKE_COMMAND} -E copy ${PATCH_DIR}/cmakelists_tbb.txt ${BUILD_DIR}/tbb/src/external_tbb/CMakeLists.txt &&
-               ${CMAKE_COMMAND} -E copy ${BUILD_DIR}/tbb/src/external_tbb/build/${TBB_VS_VERSION}/version_string.ver ${BUILD_DIR}/tbb/src/external_tbb/src/tbb/version_string.ver
+       ${CMAKE_COMMAND} -E copy ${BUILD_DIR}/tbb/src/external_tbb/build/vs2013/version_string.ver ${BUILD_DIR}/tbb/src/external_tbb/src/tbb/version_string.ver
        CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${LIBDIR}/tbb ${DEFAULT_CMAKE_FLAGS} ${TBB_EXTRA_ARGS}
        INSTALL_DIR ${LIBDIR}/tbb
 )
+
+if (WIN32)
+       if(BUILD_MODE STREQUAL Release)
+               ExternalProject_Add_Step(external_tbb after_install
+                       COMMAND ${CMAKE_COMMAND} -E copy ${LIBDIR}/tbb/lib/tbb_static.lib ${HARVEST_TARGET}/tbb/lib/tbb.lib
+                       COMMAND ${CMAKE_COMMAND} -E copy_directory ${LIBDIR}/tbb/include/ ${HARVEST_TARGET}/tbb/include/
+                       DEPENDEES install
+               )
+       endif()
+       if(BUILD_MODE STREQUAL Debug)
+               ExternalProject_Add_Step(external_tbb after_install
+                       COMMAND ${CMAKE_COMMAND} -E copy ${LIBDIR}/tbb/lib/tbb_static.lib ${HARVEST_TARGET}/tbb/lib/tbb_debug.lib
+                       DEPENDEES install
+               )
+       endif()
+endif()
index 7559cb5100feeb26185f8ea22c20122c6c64f0c7..c21f2ae3760264208f8a0303df78ec5d3a628c40 100644 (file)
@@ -93,17 +93,17 @@ 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_1_1)
-set(OPENSUBDIV_Hash 25a9a6a94136b0eb85ce69e9c8cb6ab3)
-set(OPENSUBDIV_URI https://github.com/PixarAnimationStudios/OpenSubdiv/archive/${OPENSUBDIV_VERSION}.zip)
+set(OPENSUBDIV_VERSION v3_3_3)
+set(OPENSUBDIV_Hash 29c79dc01ef616aab02670bed5544ddd)
+set(OPENSUBDIV_URI https://github.com/PixarAnimationStudios/OpenSubdiv/archive/${OPENSUBDIV_VERSION}.tar.gz)
 
-set(SDL_VERSION 2.0.4)
+set(SDL_VERSION 2.0.8)
 set(SDL_URI https://www.libsdl.org/release/SDL2-${SDL_VERSION}.tar.gz)
-set(SDL_HASH 44fc4a023349933e7f5d7a582f7b886e)
+set(SDL_HASH 3800d705cef742c6a634f202c37f263f)
 
-set(OPENCOLLADA_VERSION v1.6.51)
+set(OPENCOLLADA_VERSION v1.6.63)
 set(OPENCOLLADA_URI https://github.com/KhronosGroup/OpenCOLLADA/archive/${OPENCOLLADA_VERSION}.tar.gz)
-set(OPENCOLLADA_HASH 23db5087faed4bc4cc1dfe456c0d4701)
+set(OPENCOLLADA_HASH e937c3897b86fc0da53cde97257f5156)
 
 set(OPENCOLORIO_URI https://github.com/imageworks/OpenColorIO/archive/6de971097c7f552300f669ed69ca0b6cf5a70843.zip)
 set(OPENCOLORIO_HASH c9de0fd98f26ce6f2e08d617ca68b8e4)
@@ -145,16 +145,9 @@ set(PYTHON_SHORT_VERSION_NO_DOTS 37)
 set(PYTHON_URI https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tar.xz)
 set(PYTHON_HASH eb8c2a6b1447d50813c02714af4681f3)
 
-if(UNIX AND NOT APPLE)
-       # Needed to be compatible with GCC 7, other platforms can upgrade later
-       set(TBB_VERSION 2017_U7)
-       set(TBB_URI https://github.com/01org/tbb/archive/${TBB_VERSION}.tar.gz)
-       set(TBB_HASH 364f2a4b80e978f38a69cbf7c466b898)
-else()
-       set(TBB_VERSION 44_20160128)
-       set(TBB_URI https://www.threadingbuildingblocks.org/sites/default/files/software_releases/source/tbb${TBB_VERSION}oss_src_0.tgz)
-       set(TBB_HASH 9d8a4cdf43496f1b3f7c473a5248e5cc)
-endif()
+set(TBB_VERSION 2018_U5)
+set(TBB_URI https://github.com/01org/tbb/archive/${TBB_VERSION}.tar.gz)
+set(TBB_HASH ff3ae09f8c23892fbc3008c39f78288f)
 
 set(OPENVDB_VERSION 3.1.0)
 set(OPENVDB_URI https://github.com/dreamworksanimation/openvdb/archive/v${OPENVDB_VERSION}.tar.gz)
index 9e9cf7ad55419284fbefd1907c1666a2518088bf..3fc78bf3c18955392ca380e90c79e929abbb7d67 100644 (file)
@@ -1,16 +1,13 @@
- opensubdiv/osd/d3d11VertexBuffer.cpp | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/opensubdiv/osd/d3d11VertexBuffer.cpp b/opensubdiv/osd/d3d11VertexBuffer.cpp
-index 603cbf4..07e7e0a 100644
---- a/opensubdiv/osd/d3d11VertexBuffer.cpp
-+++ b/opensubdiv/osd/d3d11VertexBuffer.cpp
-@@ -81,7 +81,7 @@ D3D11VertexBuffer::UpdateData(const float *src, int startVertex, int numVertices
+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; }
  
-     deviceContext->Unmap(_uploadBuffer, 0);
+         FeatureMask() { Clear(); }
+-        FeatureMask(Options const & options, Sdc::SchemeType sType) { InitializeFeatures(options, sType); }
++        FeatureMask(Options const & options, Sdc::SchemeType sType) { Clear(); InitializeFeatures(options, sType); }
  
--    D3D11_BOX srcBox = { 0, 0, 0, size, 1, 1 };
-+    D3D11_BOX srcBox = { 0, 0, 0, (UINT) size, 1, 1 };
-     deviceContext->CopySubresourceRegion(_buffer, 0, 0, 0, 0,
-                                          _uploadBuffer, 0, &srcBox);
- }
+         //  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
index b309d0230f3038f3b6f277c6c0e527ac1e3728cc..d0a3bca863d76aa18f783f94b219616f0ab576f3 100644 (file)
@@ -1,33 +1,4 @@
 diff -ru /Users/brecht/dev/lib/deps/Downloads/SDL2-2.0.4/src/video/SDL_video.c ./src/video/SDL_video.c
---- /Users/brecht/dev/lib/deps/Downloads/SDL2-2.0.4/src/video/SDL_video.c      2016-01-02 20:56:31.000000000 +0100
-+++ ./src/video/SDL_video.c    2016-05-15 02:58:27.000000000 +0200
-@@ -137,7 +137,7 @@
- #define FULLSCREEN_MASK (SDL_WINDOW_FULLSCREEN_DESKTOP | SDL_WINDOW_FULLSCREEN)
--#ifdef __MACOSX__
-+#if SDL_VIDEO_DRIVER_COCOA
- /* Support for Mac OS X fullscreen spaces */
- extern SDL_bool Cocoa_IsWindowInFullscreenSpace(SDL_Window * window);
- extern SDL_bool Cocoa_SetWindowFullscreenSpace(SDL_Window * window, SDL_bool state);
-@@ -1141,7 +1141,7 @@
-     if ( window->is_hiding && fullscreen )
-         return 0;
--#ifdef __MACOSX__
-+#if SDL_VIDEO_DRIVER_COCOA
-     /* if the window is going away and no resolution change is necessary,
-      do nothing, or else we may trigger an ugly double-transition
-      */
-@@ -2365,7 +2365,7 @@
-         return SDL_FALSE;
-     }
--#ifdef __MACOSX__
-+#if SDL_VIDEO_DRIVER_COCOA
-     if (Cocoa_IsWindowInFullscreenSpace(window)) {
-         return SDL_FALSE;
-     }
 --- CMakeLists.txt.old 2016-01-02 12:56:31 -0700
 +++ CMakeLists.txt     2016-10-03 11:24:24 -0600
 @@ -609,7 +609,7 @@
@@ -39,12 +10,3 @@ diff -ru /Users/brecht/dev/lib/deps/Downloads/SDL2-2.0.4/src/video/SDL_video.c .
      if(HAVE_LIBICONV)
        list(APPEND EXTRA_LIBS iconv)
        set(HAVE_ICONV 1)
-@@ -1455,7 +1455,7 @@
- set(_INSTALL_LIBS "SDL2main")
- if(SDL_SHARED)
--  add_library(SDL2 SHARED ${SOURCE_FILES})
-+  add_library(SDL2 SHARED ${SOURCE_FILES} ${VERSION_SOURCES})
-   if(UNIX)
-     set_target_properties(SDL2 PROPERTIES
-       VERSION ${LT_VERSION}
index 2f65ad1fde48ca365d06e2131a925adbf5dd934b..10ea290574ba9db803cd2eee6b3d71f8f218ec92 100644 (file)
@@ -2727,7 +2727,7 @@ static void paint_vertsel_circle_select(ViewContext *vc, const bool select, cons
                meshobject_foreachScreenVert(vc, paint_vertsel_circle_select_doSelectVert, &data, V3D_PROJ_TEST_CLIP_DEFAULT);
        }
 
-       if (select != LEFTMOUSE) {
+       if (select == false) {
                BKE_mesh_mselect_validate(me);
        }
        paintvert_flush_flags(ob);