diff options
author | Pedro J. Estébanez <pedrojrulez@gmail.com> | 2021-12-03 20:02:49 +0100 |
---|---|---|
committer | Pedro J. Estébanez <pedrojrulez@gmail.com> | 2021-12-03 20:04:50 +0100 |
commit | 441928c7e3ec9b330db8e31d4c30086ca085960b (patch) | |
tree | cc530e5921084101a089ac5c571e5edd5556e9e6 | |
parent | ea66ea9060272d67fbf0c4264acb76a7bedfc4af (diff) |
Fix WorldEnvironment node warning about unset resources
-rw-r--r-- | scene/3d/world_environment.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/3d/world_environment.cpp b/scene/3d/world_environment.cpp index 26fa43b969..4eeb987dde 100644 --- a/scene/3d/world_environment.cpp +++ b/scene/3d/world_environment.cpp @@ -133,8 +133,8 @@ Ref<CameraEffects> WorldEnvironment::get_camera_effects() const { TypedArray<String> WorldEnvironment::get_configuration_warnings() const { TypedArray<String> warnings = Node::get_configuration_warnings(); - if (!environment.is_valid()) { - warnings.push_back(TTR("WorldEnvironment requires its \"Environment\" property to contain an Environment to have a visible effect.")); + if (!environment.is_valid() && !camera_effects.is_valid()) { + warnings.push_back(TTR("To have any visible effect, WorldEnvironment requires its \"Environment\" property to contain an Environment, its \"Camera Effects\" property to contain a CameraEffects resource, or both.")); } if (!is_inside_tree()) { |