瀏覽代碼

Deactivate orientation gizmo on window exit

danielgsilva 2 月之前
父節點
當前提交
1c48eb449a
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      editor/scene/3d/node_3d_editor_plugin.cpp

+ 4 - 0
editor/scene/3d/node_3d_editor_plugin.cpp

@@ -317,6 +317,10 @@ void ViewportRotationControl::_notification(int p_what) {
 			focused_axis = -2;
 			queue_redraw();
 		} break;
+
+		case NOTIFICATION_WM_WINDOW_FOCUS_OUT: {
+			gizmo_activated = false;
+		} break;
 	}
 }