diff --git a/src/Editor/WorldEditor/CWorldEditor.cpp b/src/Editor/WorldEditor/CWorldEditor.cpp index 26543c08..7f0e0dbb 100644 --- a/src/Editor/WorldEditor/CWorldEditor.cpp +++ b/src/Editor/WorldEditor/CWorldEditor.cpp @@ -528,7 +528,9 @@ void CWorldEditor::UpdateNewLinkLine() // Compensate for missing sender or missing receiver else { - if (ui->MainViewport->underMouse() && !ui->MainViewport->IsMouseInputActive() && (mIsMakingLink || mpLinkDialog->IsPicking() || ui->ModifyTabContents->IsPicking())) + bool IsPicking = (mIsMakingLink || mpLinkDialog->IsPicking() || ui->ModifyTabContents->IsPicking()); + + if (ui->MainViewport->underMouse() && !ui->MainViewport->IsMouseInputActive() && IsPicking) { CSceneNode *pHoverNode = ui->MainViewport->HoverNode(); CScriptObject *pInst = (pSender ? pSender : pReceiver);