Skip to content

Commit

Permalink
Merge pull request #1272 from larsoner/rng
Browse files Browse the repository at this point in the history
BUG: Fix bug with latest VTK
  • Loading branch information
prabhuramachandran authored Aug 28, 2023
2 parents cf71814 + 681e29a commit f4b6f2f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tvtk/wrapper_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,10 @@ def _gen_get_set_methods(self, klass, out):
# --------------------------------------------------------
# Has a specified range of valid values. Write and done
# --------------------------------------------------------
if rng:
# vtkOpenGLCellGridRenderRequest.ShapesToDraw is a char between
# 1 and 9 which we don't handle yet... so add a conditional
# on the first `rng` element
if rng and not isinstance(rng[0], str):
self._write_trait_with_range(klass, out, vtk_attr_name)
continue

Expand Down

0 comments on commit f4b6f2f

Please sign in to comment.