diff options
author | kobewi <kobewi4e@gmail.com> | 2022-07-14 02:27:39 +0200 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2022-07-14 02:31:52 +0200 |
commit | 38d8cb4782260e2dd341ee0544b3c6c1e292515f (patch) | |
tree | 0490e5b8eb79f2f4623d902f042f622b8ee5e511 | |
parent | 5fec0d232a41a6e99bf4e00222a88bce719637cc (diff) |
Fix drag_selection crash on scene close
-rw-r--r-- | editor/plugins/canvas_item_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/canvas_item_editor_plugin.cpp b/editor/plugins/canvas_item_editor_plugin.cpp index 7e525a4698..6dfa11642c 100644 --- a/editor/plugins/canvas_item_editor_plugin.cpp +++ b/editor/plugins/canvas_item_editor_plugin.cpp @@ -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; |