mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
Added flipped persp coll plane
This commit is contained in:
parent
b413bdbf5b
commit
07eda4ee55
@ -230,6 +230,14 @@ class Viewport(wx.Panel, DirectObject):
|
||||
collPlane.setIntoCollideMask(BitMask32.bit(21)|oldBitmask)
|
||||
v.collPlane = NodePath(collPlane)
|
||||
v.collPlane.reparentTo(v.grid)
|
||||
|
||||
collPlane2 = CollisionNode('PerspGridCol2')
|
||||
collPlane2.addSolid(CollisionPlane(Plane(0, 0, -1, 0)))
|
||||
oldBitmask = collPlane2.getIntoCollideMask()
|
||||
collPlane2.setIntoCollideMask(BitMask32.bit(21)|oldBitmask)
|
||||
v.collPlane2 = NodePath(collPlane2)
|
||||
v.collPlane2.reparentTo(v.grid)
|
||||
|
||||
#v.grid.gridBack.findAllMatches("**/+GeomNode")[0].setName("_perspViewGridBack")
|
||||
LE_showInOneCam(v.grid, 'persp')
|
||||
return v
|
||||
|
@ -178,6 +178,8 @@ class WxPandaShell(WxAppShell):
|
||||
base.direct.manipulationControl.supportMultiView()
|
||||
base.direct.cameraControl.useMayaCamControls = 1
|
||||
base.direct.cameraControl.perspCollPlane = self.perspView.collPlane
|
||||
base.direct.cameraControl.perspCollPlane2 = self.perspView.collPlane2
|
||||
|
||||
for widget in base.direct.manipulationControl.widgetList:
|
||||
widget.setBin('gui-popup', 0)
|
||||
widget.setDepthTest(0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user