diff options
| author | Brad Kittenbrink <brad@lindenlab.com> | 2008-02-27 18:58:14 +0000 |
|---|---|---|
| committer | Brad Kittenbrink <brad@lindenlab.com> | 2008-02-27 18:58:14 +0000 |
| commit | 6d52efe452aa8469e0343da1c7d108f3f52ab651 (patch) | |
| tree | a87be48e9840d7fc1f7ee514d7c7f994e71fdb3c /indra/newview/llpreviewanim.cpp | |
| parent | 6027ad2630b8650cabcf00628ee9b0d25bedd67f (diff) | |
Merge of windlight into release (QAR-286). This includes all changes in
windlight14 which have passed QA (up through r79932).
svn merge -r 80831:80833 svn+ssh://svn.lindenlab.com/svn/linden/branches/merge_windlight14_r80620
Diffstat (limited to 'indra/newview/llpreviewanim.cpp')
| -rw-r--r-- | indra/newview/llpreviewanim.cpp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/indra/newview/llpreviewanim.cpp b/indra/newview/llpreviewanim.cpp index ba96ba088b..105103d10b 100644 --- a/indra/newview/llpreviewanim.cpp +++ b/indra/newview/llpreviewanim.cpp @@ -180,33 +180,6 @@ void LLPreviewAnim::auditionAnim( void *userdata ) } } -void LLPreviewAnim::saveAnim( void *userdata ) -{ - LLPreviewAnim* self = (LLPreviewAnim*) userdata; - const LLInventoryItem *item = self->getItem(); - - if(item) - { - LLKeyframeMotion* motionp = (LLKeyframeMotion*)gAgent.getAvatarObject()->createMotion( item->getAssetUUID() ); - if (motionp && motionp->isLoaded()) - { - LLFilePicker& picker = LLFilePicker::instance(); - LLString proposed_name = item->getName() + LLString(".xaf"); - if (picker.getSaveFile(LLFilePicker::FFSAVE_ANIM, proposed_name.c_str())) - { - apr_file_t* fp = ll_apr_file_open(picker.getFirstFile(), LL_APR_W); - if (!fp) - { - llwarns << "Unable to open file " << picker.getFirstFile() << llendl; - return; - } - motionp->writeCAL3D(fp); - apr_file_close(fp); - } - } - } -} - void LLPreviewAnim::onClose(bool app_quitting) { const LLInventoryItem *item = getItem(); |
