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
This commit is contained in:
Ray molenkamp 2022-11-12 13:31:55 -07:00
parent ed852c8401
commit 1b34da5da6
1 changed files with 1 additions and 1 deletions

View File

@ -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