Merge pull request #81022 from YuriSizov/editor-run-scripts-valid-and-toasty

Improve warnings when running scripts in the editor
This commit is contained in:
Rémi Verschelde 2023-08-28 12:08:37 +02:00
commit 00d1fafc77
No known key found for this signature in database
GPG key ID: C3336907360768E1
2 changed files with 25 additions and 10 deletions

View file

@ -254,7 +254,7 @@ bool CanvasItemEditor::_is_node_movable(const Node *p_node, bool p_popup_warning
}
if (Object::cast_to<Control>(p_node) && Object::cast_to<Container>(p_node->get_parent())) {
if (p_popup_warning) {
EditorToaster::get_singleton()->popup_str("Children of a container get their position and size determined only by their parent.", EditorToaster::SEVERITY_WARNING);
EditorToaster::get_singleton()->popup_str(TTR("Children of a container get their position and size determined only by their parent."), EditorToaster::SEVERITY_WARNING);
}
return false;
}