ImageEngine / cortex

Libraries for visual effects software development
Other
528 stars 123 forks source link

VDBObject bindings : Adapt for OpenVDB 10.1 #1402

Closed johnhaddon closed 7 months ago

johnhaddon commented 7 months ago

OpenVDB 10.1 switched from Boost to PyBind11 for its bindings, so we need to bind VDBObject differently based on which version of OpenVDB we're building for. But with the new PyBindConverter class, the new bindings actually come out simpler than the old ones.

johnhaddon commented 7 months ago

This will let us upgrade Gaffer to OpenVDB 10.1, which will in turn fix crashes caused by compiling OpenVDB 10.0 with GCC 11 - see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103629.