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
f365f9a3
Commit
f365f9a3
authored
4 years ago
by
Rye Mutt
Browse files
Options
Downloads
Patches
Plain Diff
Fix bad shift in flexi objects
parent
f333c350
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/newview/llflexibleobject.cpp
+1
-1
1 addition, 1 deletion
indra/newview/llflexibleobject.cpp
with
1 addition
and
1 deletion
indra/newview/llflexibleobject.cpp
+
1
−
1
View file @
f365f9a3
...
...
@@ -154,7 +154,6 @@ void LLVolumeImplFlexible::remapSections(LLFlexibleObjectSection *source, S32 so
{
S32
num_output_sections
=
1
<<
dest_sections
;
LLVector3
scale
=
mVO
->
mDrawable
->
getScale
();
F32
source_section_length
=
scale
.
mV
[
VZ
]
/
(
F32
)(
1
<<
source_sections
);
F32
section_length
=
scale
.
mV
[
VZ
]
/
(
F32
)
num_output_sections
;
if
(
source_sections
==
-
1
)
{
...
...
@@ -186,6 +185,7 @@ void LLVolumeImplFlexible::remapSections(LLFlexibleObjectSection *source, S32 so
// Iterate from right to left since it may be an in-place computation
S32
step_shift
=
dest_sections
-
source_sections
;
S32
num_steps
=
1
<<
step_shift
;
F32
source_section_length
=
scale
.
mV
[
VZ
]
/
(
F32
)(
1
<<
source_sections
);
for
(
S32
section
=
num_output_sections
-
num_steps
;
section
>=
0
;
section
-=
num_steps
)
{
LLFlexibleObjectSection
*
last_source_section
=
&
source
[
section
>>
step_shift
];
...
...
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