mirror of
https://github.com/tiennm99/godot.git
synced 2026-08-08 22:25:15 +00:00
Update all get_configuration_warning to retrieve warnings from the parent
This commit is contained in:
@@ -186,11 +186,16 @@ void RemoteTransform2D::force_update_cache() {
|
||||
}
|
||||
|
||||
String RemoteTransform2D::get_configuration_warning() const {
|
||||
String warning = Node2D::get_configuration_warning();
|
||||
|
||||
if (!has_node(remote_node) || !Object::cast_to<Node2D>(get_node(remote_node))) {
|
||||
return TTR("Path property must point to a valid Node2D node to work.");
|
||||
if (!warning.empty()) {
|
||||
warning += "\n\n";
|
||||
}
|
||||
warning += TTR("Path property must point to a valid Node2D node to work.");
|
||||
}
|
||||
|
||||
return String();
|
||||
return warning;
|
||||
}
|
||||
|
||||
void RemoteTransform2D::_bind_methods() {
|
||||
|
||||
Reference in New Issue
Block a user