Update all get_configuration_warning to retrieve warnings from the parent
This commit is contained in:
parent
00949f0c5f
commit
9fc2b0fddc
40 changed files with 284 additions and 114 deletions
|
|
@ -443,7 +443,7 @@ String OmniLight3D::get_configuration_warning() const {
|
|||
String warning = Light3D::get_configuration_warning();
|
||||
|
||||
if (!has_shadow() && get_projector().is_valid()) {
|
||||
if (warning != String()) {
|
||||
if (!warning.empty()) {
|
||||
warning += "\n\n";
|
||||
}
|
||||
warning += TTR("Projector texture only works with shadows active.");
|
||||
|
|
@ -474,15 +474,14 @@ String SpotLight3D::get_configuration_warning() const {
|
|||
String warning = Light3D::get_configuration_warning();
|
||||
|
||||
if (has_shadow() && get_param(PARAM_SPOT_ANGLE) >= 90.0) {
|
||||
if (warning != String()) {
|
||||
if (!warning.empty()) {
|
||||
warning += "\n\n";
|
||||
}
|
||||
|
||||
warning += TTR("A SpotLight3D with an angle wider than 90 degrees cannot cast shadows.");
|
||||
}
|
||||
|
||||
if (!has_shadow() && get_projector().is_valid()) {
|
||||
if (warning != String()) {
|
||||
if (!warning.empty()) {
|
||||
warning += "\n\n";
|
||||
}
|
||||
warning += TTR("Projector texture only works with shadows active.");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue