mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
fixed fade out bug
This commit is contained in:
parent
7ee602f933
commit
a767674827
@ -79,6 +79,7 @@ class Transitions:
|
||||
state = DGG.NORMAL,
|
||||
)
|
||||
self.fade.setBin('unsorted', 0)
|
||||
self.fade.setColor(0,0,0,0)
|
||||
|
||||
|
||||
def getFadeInIval(self, t=0.5, finishIval=None):
|
||||
@ -196,6 +197,8 @@ class Transitions:
|
||||
self.transitionIval.pause()
|
||||
self.transitionIval = None
|
||||
if self.fade:
|
||||
# Make sure to reset the color, since fadeOutActive() is looking at it
|
||||
self.fade.setColor(self.alphaOff)
|
||||
self.fade.detachNode()
|
||||
|
||||
def setFadeColor(self, r, g, b):
|
||||
|
Loading…
x
Reference in New Issue
Block a user