diff options
author | andreykproductengine <andreykproductengine@lindenlab.com> | 2018-07-12 18:39:35 +0300 |
---|---|---|
committer | andreykproductengine <andreykproductengine@lindenlab.com> | 2018-07-12 18:39:35 +0300 |
commit | fb3dba5a6e41398464d06cd402de4012bd8b733a (patch) | |
tree | 558535b0d6f26ed502518463756ce8a48cdf66ba /indra/newview | |
parent | ca5d5be4fb51fa1ee7ffda24a0aa58c71facd7dd (diff) |
MAINT-8865 Fixed Day Cycle keyframe cannot be deleted
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llfloatereditextdaycycle.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/indra/newview/llfloatereditextdaycycle.cpp b/indra/newview/llfloatereditextdaycycle.cpp index 295788a03a..468c3599ff 100644 --- a/indra/newview/llfloatereditextdaycycle.cpp +++ b/indra/newview/llfloatereditextdaycycle.cpp @@ -351,8 +351,6 @@ void LLFloaterEditExtDayCycle::onButtonLoadFrame() void LLFloaterEditExtDayCycle::onAddTrack() { - // todo: 2.5% safety zone - std::string sldr_key = mFramesSlider->getCurSlider(); LLSettingsBase::Seconds frame(mTimeSlider->getCurSliderValue()); LLSettingsBase::ptr_t setting; if ((mEditDay->getSettingsNearKeyframe(frame, mCurrentTrack, FRAME_SLOP_FACTOR)).second) @@ -377,19 +375,18 @@ void LLFloaterEditExtDayCycle::onAddTrack() } addSliderFrame(frame, setting); - reblendSettings(); updateTabs(); } void LLFloaterEditExtDayCycle::onRemoveTrack() { std::string sldr_key = mFramesSlider->getCurSlider(); - if (!sldr_key.empty()) + if (sldr_key.empty()) { return; } removeCurrentSliderFrame(); - updateButtons(); + updateTabs(); } void LLFloaterEditExtDayCycle::onCommitName(class LLLineEditor* caller, void* user_data) @@ -778,9 +775,9 @@ void LLFloaterEditExtDayCycle::removeCurrentSliderFrame() if (iter != mSliderKeyMap.end()) { LL_DEBUGS() << "Removing frame from " << iter->second.mFrame << LL_ENDL; - mSliderKeyMap.erase(iter); LLSettingsBase::Seconds seconds(iter->second.mFrame); mEditDay->removeTrackKeyframe(mCurrentTrack, seconds); + mSliderKeyMap.erase(iter); } mLastFrameSlider = mFramesSlider->getCurSlider(); |