diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-06-07 13:18:07 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-06-07 13:18:07 +0300 |
commit | 00b009ca7453c1b4571af16daa37987e4391fe3e (patch) | |
tree | d5b9ec3f286057d4a806ce7416d2b5dfc4789737 /intern/opensubdiv | |
parent | 6fee241db57892cbad0db14a1c18d1f494b5e21a (diff) | |
parent | 5489b40a5ad4294115b6e54460fbdd1826720d7d (diff) |
Merge branch 'master' into blender2.8
Diffstat (limited to 'intern/opensubdiv')
-rw-r--r-- | intern/opensubdiv/opensubdiv_capi.cc | 6 | ||||
-rw-r--r-- | intern/opensubdiv/opensubdiv_capi.h | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/intern/opensubdiv/opensubdiv_capi.cc b/intern/opensubdiv/opensubdiv_capi.cc index 8337bcb0ce5..aed5d4fbd14 100644 --- a/intern/opensubdiv/opensubdiv_capi.cc +++ b/intern/opensubdiv/opensubdiv_capi.cc @@ -33,6 +33,7 @@ #include <stdlib.h> #include <GL/glew.h> +#include <opensubdiv/version.h> #include <opensubdiv/osd/glMesh.h> /* CPU Backend */ @@ -368,3 +369,8 @@ const struct OpenSubdiv_TopologyRefinerDescr *openSubdiv_getGLMeshTopologyRefine { return gl_mesh->topology_refiner; } + +int openSubdiv_getVersionHex(void) +{ + return OPENSUBDIV_VERSION_NUMBER; +} diff --git a/intern/opensubdiv/opensubdiv_capi.h b/intern/opensubdiv/opensubdiv_capi.h index 3fdfefd525f..2c3fcee7dbb 100644 --- a/intern/opensubdiv/opensubdiv_capi.h +++ b/intern/opensubdiv/opensubdiv_capi.h @@ -150,6 +150,8 @@ int openSubdiv_getAvailableEvaluators(void); void openSubdiv_init(void); void openSubdiv_cleanup(void); +int openSubdiv_getVersionHex(void); + #ifdef __cplusplus } #endif |