mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 19:08:55 -04:00
use getBackgroundColor
This commit is contained in:
parent
591e054123
commit
eb4812d06c
@ -50,7 +50,7 @@ def lerpBackgroundColor(r,g,b,duration):
|
|||||||
t = taskMgr.add(lerpColor, 'lerpBackgroundColor')
|
t = taskMgr.add(lerpColor, 'lerpBackgroundColor')
|
||||||
t.time = 0.0
|
t.time = 0.0
|
||||||
t.duration = duration
|
t.duration = duration
|
||||||
t.sc = base.win.getGsg().getColorClearValue()
|
t.sc = base.getBackgroundColor()
|
||||||
t.ec = VBase4(r,g,b,1)
|
t.ec = VBase4(r,g,b,1)
|
||||||
|
|
||||||
# Set direct drawing style for an object
|
# Set direct drawing style for an object
|
||||||
|
@ -886,7 +886,7 @@ class DirectSessionPanel(AppShell):
|
|||||||
self.updateGridInfo()
|
self.updateGridInfo()
|
||||||
|
|
||||||
def updateEnvironmentInfo(self):
|
def updateEnvironmentInfo(self):
|
||||||
bkgrdColor = base.win.getGsg().getColorClearValue() * 255.0
|
bkgrdColor = base.getBackgroundColor() * 255.0
|
||||||
self.backgroundColor.set([bkgrdColor[0],
|
self.backgroundColor.set([bkgrdColor[0],
|
||||||
bkgrdColor[1],
|
bkgrdColor[1],
|
||||||
bkgrdColor[2],
|
bkgrdColor[2],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user