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
fdcf1b87
Commit
fdcf1b87
authored
6 years ago
by
maxim_productengine
Browse files
Options
Downloads
Patches
Plain Diff
SL-10818 FIXED [EEP] Wrong selection when keyframes are close together
parent
9dee4149
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/llinventory/llsettingsdaycycle.cpp
+6
-2
6 additions, 2 deletions
indra/llinventory/llsettingsdaycycle.cpp
with
6 additions
and
2 deletions
indra/llinventory/llsettingsdaycycle.cpp
+
6
−
2
View file @
fdcf1b87
...
@@ -859,11 +859,15 @@ LLSettingsDay::CycleTrack_t::value_type LLSettingsDay::getSettingsNearKeyframe(c
...
@@ -859,11 +859,15 @@ LLSettingsDay::CycleTrack_t::value_type LLSettingsDay::getSettingsNearKeyframe(c
if
(
startframe
<
0.0
f
)
if
(
startframe
<
0.0
f
)
startframe
=
1.0
f
+
startframe
;
startframe
=
1.0
f
+
startframe
;
CycleTrack_t
::
iterator
it
=
get_wrapping_atafter
(
const_cast
<
CycleTrack_t
&>
(
mDayTracks
[
track
]),
startframe
);
LLSettingsDay
::
CycleTrack_t
collection
=
const_cast
<
CycleTrack_t
&>
(
mDayTracks
[
track
]);
CycleTrack_t
::
iterator
it
=
get_wrapping_atafter
(
collection
,
startframe
);
F32
dist
=
get_wrapping_distance
(
startframe
,
(
*
it
).
first
);
F32
dist
=
get_wrapping_distance
(
startframe
,
(
*
it
).
first
);
if
(
dist
<=
(
fudge
*
2.0
f
))
CycleTrack_t
::
iterator
next_it
=
std
::
next
(
it
);
if
((
dist
<=
DEFAULT_MULTISLIDER_INCREMENT
)
&&
next_it
!=
collection
.
end
())
return
(
*
next_it
);
else
if
(
dist
<=
(
fudge
*
2.0
f
))
return
(
*
it
);
return
(
*
it
);
return
CycleTrack_t
::
value_type
(
TrackPosition
(
INVALID_TRACKPOS
),
LLSettingsBase
::
ptr_t
());
return
CycleTrack_t
::
value_type
(
TrackPosition
(
INVALID_TRACKPOS
),
LLSettingsBase
::
ptr_t
());
...
...
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