We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 027c44e commit d1159b1Copy full SHA for d1159b1
1 file changed
gridData/OpenVDB.py
@@ -330,4 +330,6 @@ def write(self, filename):
330
filename : str
331
Output filename (should end in .vdb)
332
"""
333
+ if self.vdb_grid is None:
334
+ raise ValueError("No grid data to write")
335
vdb.write(filename, grids=[self.vdb_grid])
0 commit comments