Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
8101b709
Commit
8101b709
authored
5 years ago
by
andreykproductengine
Browse files
Options
Downloads
Patches
Plain Diff
SL-10562 Children in Animesh linksets can not be selected in some cases
parent
f5e63b06
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/newview/llcontrolavatar.cpp
+35
-11
35 additions, 11 deletions
indra/newview/llcontrolavatar.cpp
with
35 additions
and
11 deletions
indra/newview/llcontrolavatar.cpp
+
35
−
11
View file @
8101b709
...
...
@@ -566,27 +566,51 @@ LLViewerObject* LLControlAvatar::lineSegmentIntersectRiggedAttachments(const LLV
LLVector4a
*
normal
,
LLVector4a
*
tangent
)
{
LLViewerObject
*
hit
=
NULL
;
if
(
!
mRootVolp
)
{
return
NULL
;
}
if
(
lineSegmentBoundingBox
(
start
,
end
))
{
LLVector4a
local_end
=
end
;
LLVector4a
local_intersection
;
LLViewerObject
*
hit
=
NULL
;
if
(
mRootVolp
&&
mRootVolp
->
lineSegmentIntersect
(
start
,
local_end
,
face
,
pick_transparent
,
pick_rigged
,
face_hit
,
&
local_intersection
,
tex_coord
,
normal
,
tangent
))
if
(
lineSegmentBoundingBox
(
start
,
end
))
{
LLVector4a
local_end
=
end
;
LLVector4a
local_intersection
;
if
(
mRootVolp
->
lineSegmentIntersect
(
start
,
local_end
,
face
,
pick_transparent
,
pick_rigged
,
face_hit
,
&
local_intersection
,
tex_coord
,
normal
,
tangent
))
{
local_end
=
local_intersection
;
if
(
intersection
)
{
*
intersection
=
local_intersection
;
}
hit
=
mRootVolp
;
}
}
return
hit
;
else
{
std
::
vector
<
LLVOVolume
*>
volumes
;
getAnimatedVolumes
(
volumes
);
// Rebuild mSignaledAnimations from the associated volumes.
std
::
map
<
LLUUID
,
S32
>
anims
;
for
(
std
::
vector
<
LLVOVolume
*>::
iterator
vol_it
=
volumes
.
begin
();
vol_it
!=
volumes
.
end
();
++
vol_it
)
{
LLVOVolume
*
volp
=
*
vol_it
;
if
(
mRootVolp
!=
volp
&&
volp
->
lineSegmentIntersect
(
start
,
local_end
,
face
,
pick_transparent
,
pick_rigged
,
face_hit
,
&
local_intersection
,
tex_coord
,
normal
,
tangent
))
{
local_end
=
local_intersection
;
if
(
intersection
)
{
*
intersection
=
local_intersection
;
}
hit
=
volp
;
break
;
}
}
}
}
return
hit
;
}
// virtual
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment