Skip to content

Commit

Permalink
Print a warning when using sky with transparent background active
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusmdx committed Oct 25, 2024
1 parent 1015a48 commit cc235b0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scene/resources/environment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ void Environment::set_sky(const Ref<Sky> &p_sky) {
RID sb_rid;
if (bg_sky.is_valid()) {
sb_rid = bg_sky->get_rid();
if (GLOBAL_GET("rendering/viewport/transparent_background")) {
WARN_PRINT("Environment sky will not render when transparent background is active in project settings.");
}
}
RS::get_singleton()->environment_set_sky(environment, sb_rid);
}
Expand Down

0 comments on commit cc235b0

Please sign in to comment.