From 355b3144c81f9caa454787beb3f8c4a16c767dab Mon Sep 17 00:00:00 2001 From: David Rose Date: Wed, 17 Oct 2001 14:28:14 +0000 Subject: [PATCH] push panel slightly into the screen to work around DX bug --- direct/src/gui/DirectDialog.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/direct/src/gui/DirectDialog.py b/direct/src/gui/DirectDialog.py index 49dd290f46..5d8724a3ce 100644 --- a/direct/src/gui/DirectDialog.py +++ b/direct/src/gui/DirectDialog.py @@ -80,6 +80,10 @@ class DirectDialog(DirectFrame): optiondefs = ( # Define type of DirectGuiWidget ('dialogName', None, INITOPT), + # Default position is slightly forward in Y, so as not to + # intersect the near plane, which is incorrectly set to 0 + # in DX for some reason. + ('pos', (0, 0.1, 0), None), ('pad', (0.1, 0.1), None), ('text', '', None), ('text_align', TMALIGNLEFT, None),