AcademySoftwareFoundation/openvdb

Migrate VDB version check to SOP_NodeVDB

Open

#614 opened on Jan 23, 2020

View on GitHub
 (15 comments) (0 reactions) (0 assignees)C++ (762 forks)auto 404
good first issue

Repository metrics

Stars
 (3,343 stars)
PR merge metrics
 (PR metrics pending)

Description

SOP_OpenVDB_Scatter overrides the syncNodeVersion() with a check for the version of VDB the SOP was placed in:

https://github.com/AcademySoftwareFoundation/openvdb/blob/master/openvdb_houdini/SOP_OpenVDB_Scatter.cc#L256

We'd like to move the portion that does the version comparison up into SOP_NodeVDB, something like:

int SOP_NodeVDB::compareVersionString(const char* oldVersion, const char* nodeVersion);

and then change the SOP_OpenVDB_Scatter implementation to use this method so that other SOPs don't need to encode this version logic.

This needs to take account of the fact that the version string has only changed recently:

VDB 6.0.0 - "17.5.204" VDB 6.1.0 - "17.5.204" VDB 6.2.0 - "vdb6.2.0 houdini17.5.204" VDB 6.2.1 - "vdb6.2.1 houdini17.5.204" VDB 7.0.0 - "vdb7.0.0 houdini17.5.204"

Houdini version can be ignored for now, it's only the VDB version we care about.

Contributor guide