mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
Added fix for new collidemask
This commit is contained in:
parent
ebb725cbf4
commit
7338184e1a
@ -226,6 +226,8 @@ class Viewport(wx.Panel, DirectObject):
|
||||
v.grid = DirectGrid(parent=render)
|
||||
collPlane = CollisionNode('PerspGridCol')
|
||||
collPlane.addSolid(CollisionPlane(Plane(0, 0, 1, 0)))
|
||||
oldBitmask = collPlane.getIntoCollideMask()
|
||||
collPlane.setIntoCollideMask(BitMask32.bit(21)|oldBitmask)
|
||||
v.collPlane = NodePath(collPlane)
|
||||
v.collPlane.reparentTo(v.grid)
|
||||
#v.grid.gridBack.findAllMatches("**/+GeomNode")[0].setName("_perspViewGridBack")
|
||||
|
Loading…
x
Reference in New Issue
Block a user