Mattsa008 / pybox2d

Automatically exported from code.google.com/p/pybox2d
Other
0 stars 0 forks source link

Error on test_BoxCutter, trying to create an invalid shape (typo) #10

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Index: test_BoxCutter.py
===================================================================
--- test_BoxCutter.py   (revision 105)
+++ test_BoxCutter.py   (working copy)
@@ -178,7 +178,7 @@
         # Make sure the shapes are valid before creation
         try:
             for n in range(2):
-                box2d.b2PythonCheckPolygonDef(newPolygon[0])
+                box2d.b2PythonCheckPolygonDef(newPolygon[n])
         except ValueError, s:
             print "Created bad shape:", s
             return False

ps: Should I attach the patch as a file or inline is ok?

Original issue reported on code.google.com by santagada on 26 Oct 2008 at 1:28

GoogleCodeExporter commented 8 years ago
As a file would be preferable, but either works. Thanks!

Fixed in r106.

Original comment by sir...@gmail.com on 26 Oct 2008 at 3:47