Split check for picking into a separate line

This commit is contained in:
parax0 2016-03-07 21:14:43 -07:00
parent 4b8a42f341
commit 57b7fbe7f6
1 changed files with 3 additions and 1 deletions

View File

@ -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);