From c84c7fa1386665190f9043344d4849fade9c03a1 Mon Sep 17 00:00:00 2001 From: McCabe Maxsted Date: Fri, 5 Nov 2010 19:38:17 -0700 Subject: Applied patch by Qarl Fizz to allow drag selection on plants. See http://www.qarl.com/qLab/?p=67 --- linden/indra/newview/llviewercamera.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'linden/indra/newview/llviewercamera.cpp') diff --git a/linden/indra/newview/llviewercamera.cpp b/linden/indra/newview/llviewercamera.cpp index dade65f..16f6e57 100644 --- a/linden/indra/newview/llviewercamera.cpp +++ b/linden/indra/newview/llviewercamera.cpp @@ -743,7 +743,9 @@ BOOL LLViewerCamera::areVertsVisible(LLViewerObject* volumep, BOOL all_verts) LLVolume* volume = volumep->getVolume(); if (!volume) { - return FALSE; + BOOL inside = pointInFrustum(volumep->getRenderPosition()); + + return (inside > 0); } LLVOVolume* vo_volume = (LLVOVolume*) volumep; -- cgit v1.1