summaryrefslogtreecommitdiff
path: root/indra/newview/llpreviewanim.cpp
diff options
context:
space:
mode:
authorBrad Kittenbrink <brad@lindenlab.com>2008-02-27 18:58:14 +0000
committerBrad Kittenbrink <brad@lindenlab.com>2008-02-27 18:58:14 +0000
commit6d52efe452aa8469e0343da1c7d108f3f52ab651 (patch)
treea87be48e9840d7fc1f7ee514d7c7f994e71fdb3c /indra/newview/llpreviewanim.cpp
parent6027ad2630b8650cabcf00628ee9b0d25bedd67f (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.cpp27
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();