diff options
author | Ray Molenkamp <github@lazydodo.com> | 2022-11-12 23:31:55 +0300 |
---|---|---|
committer | Ray Molenkamp <github@lazydodo.com> | 2022-11-12 23:31:55 +0300 |
commit | 1b34da5da6390492c5114796d1e860214bd97e1c (patch) | |
tree | e2a2d989adda6de6d0a9c8d04cd1cd9de7f62442 | |
parent | ed852c8401c98a10a8ab4ad842a0dfc1a4ae799b (diff) |
Fix: OpenSubdiv reporting version 0.0.0 in system_info.txt
OSD Lists as 0, 0, 0 this is due to opensubdiv_capi.cc not actually including
the OSD version header, so it's not getting the version define, and the code
in openSubdiv_getVersionHex is really well prepared to deal with any or no
version at all of OSD, catches the problem and returns 0, 0, 0
Given this file is only build when OSD is enabled we can just blindly include
opensubdiv/version.h here
Reviewed by: brecht
Differential Revision: https://developer.blender.org/D16398
-rw-r--r-- | intern/opensubdiv/internal/base/opensubdiv_capi.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/opensubdiv/internal/base/opensubdiv_capi.cc b/intern/opensubdiv/internal/base/opensubdiv_capi.cc index 40d820836b9..db302e3d5de 100644 --- a/intern/opensubdiv/internal/base/opensubdiv_capi.cc +++ b/intern/opensubdiv/internal/base/opensubdiv_capi.cc @@ -15,7 +15,7 @@ // Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. #include "opensubdiv_capi.h" - +#include "opensubdiv/version.h" #ifdef _MSC_VER # include <iso646.h> #endif |