Skip to content

Commit edfa3a1

Browse files
author
Alex Fuller
committed
IECoreVDB : Python bindings renamed from pyopenvdb to openvdb in later versions
1 parent 0b88aa4 commit edfa3a1

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Changes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
10.5.x.x (relative to 10.5.13.0)
22
========
33

4+
Improvements
5+
------------
46

7+
- IEcoreVDB : Support for the renamed python module `openvdb` in more recent versions of OpenVDB.
58

69
10.5.13.0 (relative to 10.5.12.0)
710
=========

python/IECoreVDB/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@
4141
# we use the warnings module to suppress these during the import
4242
with warnings.catch_warnings():
4343
warnings.simplefilter("ignore")
44-
import pyopenvdb
44+
try:
45+
import pyopenvdb
46+
except:
47+
import openvdb
4548

4649
from ._IECoreVDB import *
4750

0 commit comments

Comments
 (0)