2
0
Эх сурвалжийг харах

put a sorting order of 0 on the top and bottom letterbox

Asad M. Zaman 18 жил өмнө
parent
commit
de37b04930

+ 6 - 0
direct/src/showbase/Transitions.py

@@ -335,6 +335,7 @@ class Transitions:
                 image_scale = (2.25,1,.5),
                 image_scale = (2.25,1,.5),
                 image_pos = (0,0,.1),
                 image_pos = (0,0,.1),
                 image_color = (0.3,0.3,0.3,1),
                 image_color = (0.3,0.3,0.3,1),
+                sortOrder = 0,
                 )
                 )
             self.letterboxBottom = DirectFrame(
             self.letterboxBottom = DirectFrame(
                 parent = self.letterbox,
                 parent = self.letterbox,
@@ -349,8 +350,13 @@ class Transitions:
                 image_scale = (2.25,1,.5),
                 image_scale = (2.25,1,.5),
                 image_pos = (0,0,.1),
                 image_pos = (0,0,.1),
                 image_color = (0.3,0.3,0.3,1),
                 image_color = (0.3,0.3,0.3,1),
+                sortOrder = 0,
                 )
                 )
 
 
+            # masad: always place these at the bottom of render
+            self.letterboxTop.setBin('sorted',0)
+            self.letterboxBottom.setBin('sorted',0)
+
     def noLetterbox(self):
     def noLetterbox(self):
         """
         """
         Removes any current letterbox tasks and parents the letterbox polygon away
         Removes any current letterbox tasks and parents the letterbox polygon away