mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -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)
|
v.grid = DirectGrid(parent=render)
|
||||||
collPlane = CollisionNode('PerspGridCol')
|
collPlane = CollisionNode('PerspGridCol')
|
||||||
collPlane.addSolid(CollisionPlane(Plane(0, 0, 1, 0)))
|
collPlane.addSolid(CollisionPlane(Plane(0, 0, 1, 0)))
|
||||||
|
oldBitmask = collPlane.getIntoCollideMask()
|
||||||
|
collPlane.setIntoCollideMask(BitMask32.bit(21)|oldBitmask)
|
||||||
v.collPlane = NodePath(collPlane)
|
v.collPlane = NodePath(collPlane)
|
||||||
v.collPlane.reparentTo(v.grid)
|
v.collPlane.reparentTo(v.grid)
|
||||||
#v.grid.gridBack.findAllMatches("**/+GeomNode")[0].setName("_perspViewGridBack")
|
#v.grid.gridBack.findAllMatches("**/+GeomNode")[0].setName("_perspViewGridBack")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user