Skip to content

Commit

Permalink
FIX: Iterate
Browse files Browse the repository at this point in the history
  • Loading branch information
larsoner committed Feb 14, 2024
1 parent 191f251 commit 9b63ebb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tvtk/vtk_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -717,10 +717,14 @@ def _find_get_set_methods(self, klass, methods):
# If we don't turn these into integers, they won't instantiate
if is_version_9():
if klass_name == "vtkAxisActor":
if key in ("AxisOnOrigin", "Use2DMode"):
if key in (
"AxisOnOrigin", "Use2DMode", "UseTextActor3D",
):
default = int(bool(default))
elif klass_name in ("vtkCubeAxesActor", "vtkPolarAxesActor"):
if key in ("EnableDistanceLOD", "EnableViewAngleLOD"):
if key in (
"EnableDistanceLOD", "EnableViewAngleLOD", "Use2DMode",
):
default = int(bool(default))

if value:
Expand Down

0 comments on commit 9b63ebb

Please sign in to comment.