mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
parent for toggleGrid
This commit is contained in:
parent
ade7dabdd9
commit
81b8b3165e
@ -63,11 +63,11 @@ class DirectGrid(NodePath, DirectObject):
|
||||
self.detachNode()
|
||||
self.fEnabled = 0
|
||||
|
||||
def toggleGrid(self):
|
||||
def toggleGrid(self, parent = None):
|
||||
if self.fEnabled:
|
||||
self.disable()
|
||||
else:
|
||||
self.enable()
|
||||
self.enable(parent = parent)
|
||||
|
||||
def isEnabled(self):
|
||||
return self.fEnabled
|
||||
|
Loading…
x
Reference in New Issue
Block a user