summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2022-07-14 02:27:39 +0200
committerkobewi <kobewi4e@gmail.com>2022-07-14 02:31:52 +0200
commit38d8cb4782260e2dd341ee0544b3c6c1e292515f (patch)
tree0490e5b8eb79f2f4623d902f042f622b8ee5e511
parent5fec0d232a41a6e99bf4e00222a88bce719637cc (diff)
Fix drag_selection crash on scene close
-rw-r--r--editor/plugins/canvas_item_editor_plugin.cpp2
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;