From 9d40ea1184ec1a75b64cf680f263360017868447 Mon Sep 17 00:00:00 2001 From: David Rose Date: Wed, 13 Jul 2011 23:37:13 +0000 Subject: [PATCH] avoid deprecated interface --- direct/src/showbase/MirrorDemo.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/direct/src/showbase/MirrorDemo.py b/direct/src/showbase/MirrorDemo.py index 6ac122bdb0..8199c05177 100755 --- a/direct/src/showbase/MirrorDemo.py +++ b/direct/src/showbase/MirrorDemo.py @@ -67,9 +67,10 @@ def setupMirror(name, width, height): # camera to reverse the direction of its face culling. We also # tell it not to draw (that is, to clip) anything behind the # mirror plane. - camera.setInitialState(RenderState.make( - CullFaceAttrib.makeReverse(), - ClipPlaneAttrib.make(ClipPlaneAttrib.OAdd, planeNode))) + dummy = NodePath('dummy') + dummy.setAttrib(CullFaceAttrib.makeReverse()) + dummy.setClipPlane(planeNP) + camera.setInitialState(dummy.getState()) # Create a visible representation of the camera so we can see it. #cameraVis = loader.loadModel('camera.egg')