diff options
author | Jacek Antonelli | 2009-09-03 03:09:14 -0500 |
---|---|---|
committer | Jacek Antonelli | 2009-09-03 03:09:14 -0500 |
commit | 6a1dd7249946e3c9aee581de0d547f337b24870b (patch) | |
tree | d6b5a282cb8962a6594afb6642c0ae0ecc8d4763 /linden | |
parent | Imported Meerkat's object backup feature. (ChangeLog entry) (diff) | |
download | meta-impy-6a1dd7249946e3c9aee581de0d547f337b24870b.zip meta-impy-6a1dd7249946e3c9aee581de0d547f337b24870b.tar.gz meta-impy-6a1dd7249946e3c9aee581de0d547f337b24870b.tar.bz2 meta-impy-6a1dd7249946e3c9aee581de0d547f337b24870b.tar.xz |
Updated object backup feature to Meerkat's SVN, imported floater.
Diffstat (limited to 'linden')
-rw-r--r-- | linden/indra/newview/primbackup.cpp | 18 | ||||
-rw-r--r-- | linden/indra/newview/primbackup.h | 1 | ||||
-rw-r--r-- | linden/indra/newview/skins/default/xui/en-us/floater_prim_import.xml | 5 |
3 files changed, 17 insertions, 7 deletions
diff --git a/linden/indra/newview/primbackup.cpp b/linden/indra/newview/primbackup.cpp index ff65ed6..78fd482 100644 --- a/linden/indra/newview/primbackup.cpp +++ b/linden/indra/newview/primbackup.cpp | |||
@@ -72,8 +72,8 @@ class importResponder: public LLNewAgentInventoryResponder | |||
72 | public: | 72 | public: |
73 | 73 | ||
74 | importResponder(const LLSD& post_data, | 74 | importResponder(const LLSD& post_data, |
75 | const LLUUID& vfile_id, | 75 | const LLUUID& vfile_id, |
76 | LLAssetType::EType asset_type) | 76 | LLAssetType::EType asset_type) |
77 | : LLNewAgentInventoryResponder(post_data, vfile_id, asset_type) | 77 | : LLNewAgentInventoryResponder(post_data, vfile_id, asset_type) |
78 | { | 78 | { |
79 | } | 79 | } |
@@ -229,9 +229,9 @@ primbackup::primbackup() | |||
229 | LLUICtrlFactory::getInstance()->buildFloater( this, "floater_prim_import.xml" ); | 229 | LLUICtrlFactory::getInstance()->buildFloater( this, "floater_prim_import.xml" ); |
230 | 230 | ||
231 | // reposition floater from saved settings | 231 | // reposition floater from saved settings |
232 | LLRect rect = gSavedSettings.getRect( "FloaterPrimImport" ); | 232 | //LLRect rect = gSavedSettings.getRect( "FloaterPrimImport" ); |
233 | reshape( rect.getWidth(), rect.getHeight(), FALSE ); | 233 | //reshape( rect.getWidth(), rect.getHeight(), FALSE ); |
234 | setRect( rect ); | 234 | //setRect( rect ); |
235 | 235 | ||
236 | running=false; | 236 | running=false; |
237 | textures.clear(); | 237 | textures.clear(); |
@@ -365,7 +365,7 @@ void primbackup::exportworker(void *userdata) | |||
365 | { | 365 | { |
366 | virtual bool apply(LLSelectNode* node) | 366 | virtual bool apply(LLSelectNode* node) |
367 | { | 367 | { |
368 | if(gAgent.getID()!=node->mPermissions->getCreator()) | 368 | if(gAgent.getID()!=node->mPermissions->getOwner()) |
369 | { | 369 | { |
370 | #ifdef LL_GRID_PERMISSIONS | 370 | #ifdef LL_GRID_PERMISSIONS |
371 | return false; | 371 | return false; |
@@ -373,7 +373,11 @@ void primbackup::exportworker(void *userdata) | |||
373 | return true; | 373 | return true; |
374 | #endif | 374 | #endif |
375 | } | 375 | } |
376 | return true; | 376 | else if(581632==node->mPermissions->getMaskOwner() || 2147483647==node->mPermissions->getMaskOwner()) |
377 | { | ||
378 | return true; | ||
379 | } | ||
380 | return false; | ||
377 | } | 381 | } |
378 | } func; | 382 | } func; |
379 | 383 | ||
diff --git a/linden/indra/newview/primbackup.h b/linden/indra/newview/primbackup.h index ee4cb29..fddc35f 100644 --- a/linden/indra/newview/primbackup.h +++ b/linden/indra/newview/primbackup.h | |||
@@ -129,3 +129,4 @@ private: | |||
129 | LLQuaternion agent_rot; | 129 | LLQuaternion agent_rot; |
130 | 130 | ||
131 | }; | 131 | }; |
132 | |||
diff --git a/linden/indra/newview/skins/default/xui/en-us/floater_prim_import.xml b/linden/indra/newview/skins/default/xui/en-us/floater_prim_import.xml new file mode 100644 index 0000000..191b31e --- /dev/null +++ b/linden/indra/newview/skins/default/xui/en-us/floater_prim_import.xml | |||
@@ -0,0 +1,5 @@ | |||
1 | <?xml version="1.0" encoding="utf-8" standalone="yes" ?> | ||
2 | <floater can_close="true" can_drag_on_left="true" can_minimize="false" | ||
3 | can_resize="false" height="80" name="Import" title="Import progress" width="200" mouse_opaque="true"> | ||
4 | <text height="15" left="10" name="name_label" top="-10"> Progress </text> | ||
5 | </floater> | ||