Skip to content

Commit 6295ddd

Browse files
committed
Fixed py3k support
1 parent fa5d251 commit 6295ddd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/core_visualization_graphic3d_custom_opengl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ def draw_lines(pnt_list, nr_of_points, display):
7474

7575
try:
7676
while 1:
77-
pnt = gp_Pnt(*pnt_list.next())
77+
pnt = gp_Pnt(*next(pnt_list))
7878
gg.AddVertex(pnt)
79-
pnt = gp_Pnt(*pnt_list.next())
79+
pnt = gp_Pnt(*next(pnt_list))
8080
gg.AddVertex(pnt)
8181
# create the line, with a random color
8282
gg.AddBound(2, random.random(), random.random(), random.random())

0 commit comments

Comments
 (0)