Browse Source

Added fix for new collidemask

Gyedo Jeon 15 years ago
parent
commit
7338184e1a
1 changed files with 2 additions and 0 deletions
  1. 2 0
      direct/src/leveleditor/ViewPort.py

+ 2 - 0
direct/src/leveleditor/ViewPort.py

@@ -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")