mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
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
|
|
@ -261,11 +261,16 @@ void ShaderGlobalsOverride::_notification(int p_what) {
|
|||
}
|
||||
|
||||
String ShaderGlobalsOverride::get_configuration_warning() const {
|
||||
String warning = Node::get_configuration_warning();
|
||||
|
||||
if (!active) {
|
||||
return TTR("ShaderGlobalsOverride is not active because another node of the same type is in the scene.");
|
||||
if (!warning.empty()) {
|
||||
warning += "\n\n";
|
||||
}
|
||||
warning += TTR("ShaderGlobalsOverride is not active because another node of the same type is in the scene.");
|
||||
}
|
||||
|
||||
return String();
|
||||
return warning;
|
||||
}
|
||||
|
||||
void ShaderGlobalsOverride::_bind_methods() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue