Merge pull request #79805 from kumikumi/fix-subviewport-cursor

Prevent SubViewportContainer overriding Subviewport's cursor with its own cursor
This commit is contained in:
Yuri Sizov
2023-07-26 18:40:30 +02:00
3 changed files with 46 additions and 1 deletions

View File

@ -267,6 +267,10 @@ PackedStringArray SubViewportContainer::get_configuration_warnings() const {
warnings.push_back(RTR("This node doesn't have a SubViewport as child, so it can't display its intended content.\nConsider adding a SubViewport as a child to provide something displayable."));
}
if (get_default_cursor_shape() != Control::CURSOR_ARROW) {
warnings.push_back(RTR("The default mouse cursor shape of SubViewportContainer has no effect.\nConsider leaving it at its initial value `CURSOR_ARROW`."));
}
return warnings;
}