Clear color was not correctly being set, fixes #4939
This commit is contained in:
parent
c752c26427
commit
7b63c6323d
5 changed files with 16 additions and 3 deletions
|
|
@ -252,7 +252,9 @@ void VisualServerViewport::draw_viewports() {
|
|||
// process all our active interfaces
|
||||
ARVRServer::get_singleton()->_process();
|
||||
|
||||
clear_color = GLOBAL_GET("rendering/environment/default_clear_color");
|
||||
if (Engine::get_singleton()->is_editor_hint()) {
|
||||
clear_color = GLOBAL_GET("rendering/environment/default_clear_color");
|
||||
}
|
||||
|
||||
//sort viewports
|
||||
active_viewports.sort_custom<ViewportSort>();
|
||||
|
|
@ -660,5 +662,9 @@ bool VisualServerViewport::free(RID p_rid) {
|
|||
return false;
|
||||
}
|
||||
|
||||
void VisualServerViewport::set_default_clear_color(const Color &p_color) {
|
||||
clear_color = p_color;
|
||||
}
|
||||
|
||||
VisualServerViewport::VisualServerViewport() {
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue