Merge pull request #62993 from KoBeWi/drash

Fix drag_selection crash on scene close
This commit is contained in:
Rémi Verschelde 2022-07-14 14:35:00 +02:00 committed by GitHub
commit 748609feac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3645,7 +3645,7 @@ void CanvasItemEditor::_draw_hover() {
}
void CanvasItemEditor::_draw_transform_message() {
if (drag_selection.is_empty() || !drag_selection.front()->get()) {
if (drag_type == DRAG_NONE || drag_selection.is_empty() || !drag_selection.front()->get()) {
return;
}
String transform_message;