Browse Source

Fixed float vs int problem

Mark Mine 20 years ago
parent
commit
4dbcb083db
1 changed files with 1 additions and 1 deletions
  1. 1 1
      direct/src/directtools/DirectGrid.py

+ 1 - 1
direct/src/directtools/DirectGrid.py

@@ -75,7 +75,7 @@ class DirectGrid(NodePath,PandaObject):
         self.centerLines.reset()
 
         # Now redraw lines
-        numLines = math.ceil(self.gridSize/self.gridSpacing)
+        numLines = int(math.ceil(self.gridSize/self.gridSpacing))
         scaledSize = numLines * self.gridSpacing
  
         center = self.centerLines