Fix drag_selection crash on scene close

This commit is contained in:
kobewi 2022-07-14 02:27:39 +02:00
parent 5fec0d232a
commit 38d8cb4782

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;