mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
Fixed float vs int problem
This commit is contained in:
parent
ee4f120fee
commit
4dbcb083db
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user