Split check for picking into a separate line
This commit is contained in:
parent
4b8a42f341
commit
57b7fbe7f6
|
@ -528,7 +528,9 @@ void CWorldEditor::UpdateNewLinkLine()
|
||||||
// Compensate for missing sender or missing receiver
|
// Compensate for missing sender or missing receiver
|
||||||
else
|
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();
|
CSceneNode *pHoverNode = ui->MainViewport->HoverNode();
|
||||||
CScriptObject *pInst = (pSender ? pSender : pReceiver);
|
CScriptObject *pInst = (pSender ? pSender : pReceiver);
|
||||||
|
|
Loading…
Reference in New Issue